1--TEST-- 2strcasecmp() function 3--INI-- 4precision = 12 5--FILE-- 6<?php 7/* Compares two strings in case-insensitive manner */ 8 9echo "#### Basic and Possible operations ####"; 10/* creating an array of strings to be compared */ 11$arrays = array( 12 array("a", 'A', chr(128), chr(255), chr(256)), 13 array("acc", "Acc", 'aC', "acCc", 'acd', "?acc", 'Acc!', "$!acc", ";acc"), 14 array("1", "0", 0, "-1", -1, "", TRUE, true, FALSE, "string"), 15 array(10.5, 1.5, 9.5, 11.5, 100.5, 10.5E1, -10.5, 10, 0.5) 16 ); 17 18/* loop through to go each and every element in an array 19 and comparing the elements with one and other */ 20foreach($arrays as $str1_arr){ 21 echo "\n*** comparing the strings in an \n"; 22 print_r($str1_arr); 23 for ($i=0; $i<count($str1_arr); $i++){ 24 echo "\nIteration $i\n"; 25 for($j=0; $j<count($str1_arr); $j++){ 26 echo "- strcasecmp of '$str1_arr[$i]' and '$str1_arr[$j]' is => "; 27 var_dump(strcasecmp($str1_arr[$i], $str1_arr[$j])); 28 } 29 } 30} 31 32 33 34echo "\n#### Testing miscellaneous inputs ####\n"; 35 36echo "--- Testing objects ---\n"; 37/* we get "Recoverable fatal error: saying Object of class could not be converted 38 to string" by default when an object is passed instead of string. 39The error can be avoided by choosing the __toString magix method as follows: */ 40 41class string1 { 42 function __toString() { 43 return "Hello, world"; 44 } 45} 46$obj_string1 = new string1; 47 48class string2 { 49 function __toString() { 50 return "hello, world\0"; 51 } 52} 53$obj_string2 = new string2; 54 55var_dump(strcasecmp("$obj_string1", "$obj_string2")); 56 57 58echo "\n--- Testing arrays ---\n"; 59$str_arr = array("hello", "?world", "!$%**()%**[][[[&@#~!"); 60var_dump(strcasecmp("hello?world,!$%**()%**[][[[&@#~!", "$str_arr[1]")); 61var_dump(strcasecmp("hello?world,!$%**()%**[][[[&@#~!", "$str_arr[2]")); 62 63 64echo "\n--- Testing a longer and heredoc string ---\n"; 65$string = <<<EOD 66abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 67abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 68abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 69abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 70abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 71abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 72abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 73@#$%^&**&^%$#@!~:())))((((&&&**%$###@@@!!!~~~~@###$%^&* 74abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 75EOD; 76var_dump(strcasecmp($string, $string)); 77var_dump(strcasecmp($string, "xyz0123456789")); 78var_dump(strcasecmp($string, "&&&")); 79 80echo "\n--- Testing a heredoc null string ---\n"; 81$str = <<<EOD 82EOD; 83var_dump(strcasecmp($str, "\0")); 84var_dump(strcasecmp($str, "0")); 85 86 87echo "\n--- Testing simple and complex syntax strings ---\n"; 88$str = 'world'; 89 90/* Simple syntax */ 91var_dump(strcasecmp("Hello, world", "$str")); 92var_dump(strcasecmp("Hello, world'S", "$str'S")); 93var_dump(strcasecmp("Hello, worldS", "$strS")); 94 95/* String with curly braces, complex syntax */ 96var_dump(strcasecmp("Hello, worldS", "${str}S")); 97var_dump(strcasecmp("Hello, worldS", "{$str}S")); 98 99echo "\n--- Testing binary safe and binary chars ---\n"; 100var_dump(strcasecmp("Hello\0world", "Hello")); 101var_dump(strcasecmp("Hello\0world", "Helloworld")); 102var_dump(strcasecmp("\x0", "\0")); 103var_dump(strcasecmp("\000", "\0")); 104var_dump(strcasecmp("\x00", "")); 105 106echo "\n--- Comparing long float values ---\n"; 107/* Here two different outputs, which depends on the rounding value 108 before converting to string. Here Precision = 12 */ 109var_dump(strcasecmp(10.55555555555555555555555555, 10.5555555556)); // int(0) 110var_dump(strcasecmp(10.55555555555555555555555555, 10.555555556)); // int(-1) 111var_dump(strcasecmp(10.55555555595555555555555555, 10.555555556)); // int(0) 112 113echo "Done\n"; 114?> 115--EXPECTF-- 116Deprecated: Using ${var} in strings is deprecated, use {$var} instead in %s on line %d 117#### Basic and Possible operations #### 118*** comparing the strings in an 119Array 120( 121 [0] => a 122 [1] => A 123 [2] => � 124 [3] => � 125 [4] => %0 126) 127 128Iteration 0 129- strcasecmp of 'a' and 'a' is => int(0) 130- strcasecmp of 'a' and 'A' is => int(0) 131- strcasecmp of 'a' and '�' is => int(-%d) 132- strcasecmp of 'a' and '�' is => int(-%d) 133- strcasecmp of 'a' and '%0' is => int(%d) 134 135Iteration 1 136- strcasecmp of 'A' and 'a' is => int(0) 137- strcasecmp of 'A' and 'A' is => int(0) 138- strcasecmp of 'A' and '�' is => int(-%d) 139- strcasecmp of 'A' and '�' is => int(-%d) 140- strcasecmp of 'A' and '%0' is => int(%d) 141 142Iteration 2 143- strcasecmp of '�' and 'a' is => int(%d) 144- strcasecmp of '�' and 'A' is => int(%d) 145- strcasecmp of '�' and '�' is => int(0) 146- strcasecmp of '�' and '�' is => int(-%d) 147- strcasecmp of '�' and '%0' is => int(%d) 148 149Iteration 3 150- strcasecmp of '�' and 'a' is => int(%d) 151- strcasecmp of '�' and 'A' is => int(%d) 152- strcasecmp of '�' and '�' is => int(%d) 153- strcasecmp of '�' and '�' is => int(0) 154- strcasecmp of '�' and '%0' is => int(%d) 155 156Iteration 4 157- strcasecmp of '%0' and 'a' is => int(-%d) 158- strcasecmp of '%0' and 'A' is => int(-%d) 159- strcasecmp of '%0' and '�' is => int(-%d) 160- strcasecmp of '%0' and '�' is => int(-%d) 161- strcasecmp of '%0' and '%0' is => int(0) 162 163*** comparing the strings in an 164Array 165( 166 [0] => acc 167 [1] => Acc 168 [2] => aC 169 [3] => acCc 170 [4] => acd 171 [5] => ?acc 172 [6] => Acc! 173 [7] => $!acc 174 [8] => ;acc 175) 176 177Iteration 0 178- strcasecmp of 'acc' and 'acc' is => int(0) 179- strcasecmp of 'acc' and 'Acc' is => int(0) 180- strcasecmp of 'acc' and 'aC' is => int(%d) 181- strcasecmp of 'acc' and 'acCc' is => int(-%d) 182- strcasecmp of 'acc' and 'acd' is => int(-%d) 183- strcasecmp of 'acc' and '?acc' is => int(%d) 184- strcasecmp of 'acc' and 'Acc!' is => int(-%d) 185- strcasecmp of 'acc' and '$!acc' is => int(%d) 186- strcasecmp of 'acc' and ';acc' is => int(%d) 187 188Iteration 1 189- strcasecmp of 'Acc' and 'acc' is => int(0) 190- strcasecmp of 'Acc' and 'Acc' is => int(0) 191- strcasecmp of 'Acc' and 'aC' is => int(%d) 192- strcasecmp of 'Acc' and 'acCc' is => int(-%d) 193- strcasecmp of 'Acc' and 'acd' is => int(-%d) 194- strcasecmp of 'Acc' and '?acc' is => int(%d) 195- strcasecmp of 'Acc' and 'Acc!' is => int(-%d) 196- strcasecmp of 'Acc' and '$!acc' is => int(%d) 197- strcasecmp of 'Acc' and ';acc' is => int(%d) 198 199Iteration 2 200- strcasecmp of 'aC' and 'acc' is => int(-%d) 201- strcasecmp of 'aC' and 'Acc' is => int(-%d) 202- strcasecmp of 'aC' and 'aC' is => int(0) 203- strcasecmp of 'aC' and 'acCc' is => int(-%d) 204- strcasecmp of 'aC' and 'acd' is => int(-%d) 205- strcasecmp of 'aC' and '?acc' is => int(%d) 206- strcasecmp of 'aC' and 'Acc!' is => int(-%d) 207- strcasecmp of 'aC' and '$!acc' is => int(%d) 208- strcasecmp of 'aC' and ';acc' is => int(%d) 209 210Iteration 3 211- strcasecmp of 'acCc' and 'acc' is => int(%d) 212- strcasecmp of 'acCc' and 'Acc' is => int(%d) 213- strcasecmp of 'acCc' and 'aC' is => int(%d) 214- strcasecmp of 'acCc' and 'acCc' is => int(0) 215- strcasecmp of 'acCc' and 'acd' is => int(-%d) 216- strcasecmp of 'acCc' and '?acc' is => int(%d) 217- strcasecmp of 'acCc' and 'Acc!' is => int(%d) 218- strcasecmp of 'acCc' and '$!acc' is => int(%d) 219- strcasecmp of 'acCc' and ';acc' is => int(%d) 220 221Iteration 4 222- strcasecmp of 'acd' and 'acc' is => int(%d) 223- strcasecmp of 'acd' and 'Acc' is => int(%d) 224- strcasecmp of 'acd' and 'aC' is => int(%d) 225- strcasecmp of 'acd' and 'acCc' is => int(%d) 226- strcasecmp of 'acd' and 'acd' is => int(0) 227- strcasecmp of 'acd' and '?acc' is => int(%d) 228- strcasecmp of 'acd' and 'Acc!' is => int(%d) 229- strcasecmp of 'acd' and '$!acc' is => int(%d) 230- strcasecmp of 'acd' and ';acc' is => int(%d) 231 232Iteration 5 233- strcasecmp of '?acc' and 'acc' is => int(-%d) 234- strcasecmp of '?acc' and 'Acc' is => int(-%d) 235- strcasecmp of '?acc' and 'aC' is => int(-%d) 236- strcasecmp of '?acc' and 'acCc' is => int(-%d) 237- strcasecmp of '?acc' and 'acd' is => int(-%d) 238- strcasecmp of '?acc' and '?acc' is => int(0) 239- strcasecmp of '?acc' and 'Acc!' is => int(-%d) 240- strcasecmp of '?acc' and '$!acc' is => int(%d) 241- strcasecmp of '?acc' and ';acc' is => int(%d) 242 243Iteration 6 244- strcasecmp of 'Acc!' and 'acc' is => int(%d) 245- strcasecmp of 'Acc!' and 'Acc' is => int(%d) 246- strcasecmp of 'Acc!' and 'aC' is => int(%d) 247- strcasecmp of 'Acc!' and 'acCc' is => int(-%d) 248- strcasecmp of 'Acc!' and 'acd' is => int(-%d) 249- strcasecmp of 'Acc!' and '?acc' is => int(%d) 250- strcasecmp of 'Acc!' and 'Acc!' is => int(0) 251- strcasecmp of 'Acc!' and '$!acc' is => int(%d) 252- strcasecmp of 'Acc!' and ';acc' is => int(%d) 253 254Iteration 7 255- strcasecmp of '$!acc' and 'acc' is => int(-%d) 256- strcasecmp of '$!acc' and 'Acc' is => int(-%d) 257- strcasecmp of '$!acc' and 'aC' is => int(-%d) 258- strcasecmp of '$!acc' and 'acCc' is => int(-%d) 259- strcasecmp of '$!acc' and 'acd' is => int(-%d) 260- strcasecmp of '$!acc' and '?acc' is => int(-%d) 261- strcasecmp of '$!acc' and 'Acc!' is => int(-%d) 262- strcasecmp of '$!acc' and '$!acc' is => int(0) 263- strcasecmp of '$!acc' and ';acc' is => int(-%d) 264 265Iteration 8 266- strcasecmp of ';acc' and 'acc' is => int(-%d) 267- strcasecmp of ';acc' and 'Acc' is => int(-%d) 268- strcasecmp of ';acc' and 'aC' is => int(-%d) 269- strcasecmp of ';acc' and 'acCc' is => int(-%d) 270- strcasecmp of ';acc' and 'acd' is => int(-%d) 271- strcasecmp of ';acc' and '?acc' is => int(-%d) 272- strcasecmp of ';acc' and 'Acc!' is => int(-%d) 273- strcasecmp of ';acc' and '$!acc' is => int(%d) 274- strcasecmp of ';acc' and ';acc' is => int(0) 275 276*** comparing the strings in an 277Array 278( 279 [0] => 1 280 [1] => 0 281 [2] => 0 282 [3] => -1 283 [4] => -1 284 [5] => 285 [6] => 1 286 [7] => 1 287 [8] => 288 [9] => string 289) 290 291Iteration 0 292- strcasecmp of '1' and '1' is => int(0) 293- strcasecmp of '1' and '0' is => int(%d) 294- strcasecmp of '1' and '0' is => int(%d) 295- strcasecmp of '1' and '-1' is => int(%d) 296- strcasecmp of '1' and '-1' is => int(%d) 297- strcasecmp of '1' and '' is => int(%d) 298- strcasecmp of '1' and '1' is => int(0) 299- strcasecmp of '1' and '1' is => int(0) 300- strcasecmp of '1' and '' is => int(%d) 301- strcasecmp of '1' and 'string' is => int(-%d) 302 303Iteration 1 304- strcasecmp of '0' and '1' is => int(-%d) 305- strcasecmp of '0' and '0' is => int(0) 306- strcasecmp of '0' and '0' is => int(0) 307- strcasecmp of '0' and '-1' is => int(%d) 308- strcasecmp of '0' and '-1' is => int(%d) 309- strcasecmp of '0' and '' is => int(%d) 310- strcasecmp of '0' and '1' is => int(-%d) 311- strcasecmp of '0' and '1' is => int(-%d) 312- strcasecmp of '0' and '' is => int(%d) 313- strcasecmp of '0' and 'string' is => int(-%d) 314 315Iteration 2 316- strcasecmp of '0' and '1' is => int(-%d) 317- strcasecmp of '0' and '0' is => int(0) 318- strcasecmp of '0' and '0' is => int(0) 319- strcasecmp of '0' and '-1' is => int(%d) 320- strcasecmp of '0' and '-1' is => int(%d) 321- strcasecmp of '0' and '' is => int(%d) 322- strcasecmp of '0' and '1' is => int(-%d) 323- strcasecmp of '0' and '1' is => int(-%d) 324- strcasecmp of '0' and '' is => int(%d) 325- strcasecmp of '0' and 'string' is => int(-%d) 326 327Iteration 3 328- strcasecmp of '-1' and '1' is => int(-%d) 329- strcasecmp of '-1' and '0' is => int(-%d) 330- strcasecmp of '-1' and '0' is => int(-%d) 331- strcasecmp of '-1' and '-1' is => int(0) 332- strcasecmp of '-1' and '-1' is => int(0) 333- strcasecmp of '-1' and '' is => int(%d) 334- strcasecmp of '-1' and '1' is => int(-%d) 335- strcasecmp of '-1' and '1' is => int(-%d) 336- strcasecmp of '-1' and '' is => int(%d) 337- strcasecmp of '-1' and 'string' is => int(-%d) 338 339Iteration 4 340- strcasecmp of '-1' and '1' is => int(-%d) 341- strcasecmp of '-1' and '0' is => int(-%d) 342- strcasecmp of '-1' and '0' is => int(-%d) 343- strcasecmp of '-1' and '-1' is => int(0) 344- strcasecmp of '-1' and '-1' is => int(0) 345- strcasecmp of '-1' and '' is => int(%d) 346- strcasecmp of '-1' and '1' is => int(-%d) 347- strcasecmp of '-1' and '1' is => int(-%d) 348- strcasecmp of '-1' and '' is => int(%d) 349- strcasecmp of '-1' and 'string' is => int(-%d) 350 351Iteration 5 352- strcasecmp of '' and '1' is => int(-%d) 353- strcasecmp of '' and '0' is => int(-%d) 354- strcasecmp of '' and '0' is => int(-%d) 355- strcasecmp of '' and '-1' is => int(-%d) 356- strcasecmp of '' and '-1' is => int(-%d) 357- strcasecmp of '' and '' is => int(0) 358- strcasecmp of '' and '1' is => int(-%d) 359- strcasecmp of '' and '1' is => int(-%d) 360- strcasecmp of '' and '' is => int(0) 361- strcasecmp of '' and 'string' is => int(-%d) 362 363Iteration 6 364- strcasecmp of '1' and '1' is => int(0) 365- strcasecmp of '1' and '0' is => int(%d) 366- strcasecmp of '1' and '0' is => int(%d) 367- strcasecmp of '1' and '-1' is => int(%d) 368- strcasecmp of '1' and '-1' is => int(%d) 369- strcasecmp of '1' and '' is => int(%d) 370- strcasecmp of '1' and '1' is => int(0) 371- strcasecmp of '1' and '1' is => int(0) 372- strcasecmp of '1' and '' is => int(%d) 373- strcasecmp of '1' and 'string' is => int(-%d) 374 375Iteration 7 376- strcasecmp of '1' and '1' is => int(0) 377- strcasecmp of '1' and '0' is => int(%d) 378- strcasecmp of '1' and '0' is => int(%d) 379- strcasecmp of '1' and '-1' is => int(%d) 380- strcasecmp of '1' and '-1' is => int(%d) 381- strcasecmp of '1' and '' is => int(%d) 382- strcasecmp of '1' and '1' is => int(0) 383- strcasecmp of '1' and '1' is => int(0) 384- strcasecmp of '1' and '' is => int(%d) 385- strcasecmp of '1' and 'string' is => int(-%d) 386 387Iteration 8 388- strcasecmp of '' and '1' is => int(-%d) 389- strcasecmp of '' and '0' is => int(-%d) 390- strcasecmp of '' and '0' is => int(-%d) 391- strcasecmp of '' and '-1' is => int(-%d) 392- strcasecmp of '' and '-1' is => int(-%d) 393- strcasecmp of '' and '' is => int(0) 394- strcasecmp of '' and '1' is => int(-%d) 395- strcasecmp of '' and '1' is => int(-%d) 396- strcasecmp of '' and '' is => int(0) 397- strcasecmp of '' and 'string' is => int(-%d) 398 399Iteration 9 400- strcasecmp of 'string' and '1' is => int(%d) 401- strcasecmp of 'string' and '0' is => int(%d) 402- strcasecmp of 'string' and '0' is => int(%d) 403- strcasecmp of 'string' and '-1' is => int(%d) 404- strcasecmp of 'string' and '-1' is => int(%d) 405- strcasecmp of 'string' and '' is => int(%d) 406- strcasecmp of 'string' and '1' is => int(%d) 407- strcasecmp of 'string' and '1' is => int(%d) 408- strcasecmp of 'string' and '' is => int(%d) 409- strcasecmp of 'string' and 'string' is => int(0) 410 411*** comparing the strings in an 412Array 413( 414 [0] => 10.5 415 [1] => 1.5 416 [2] => 9.5 417 [3] => 11.5 418 [4] => 100.5 419 [5] => 105 420 [6] => -10.5 421 [7] => 10 422 [8] => 0.5 423) 424 425Iteration 0 426- strcasecmp of '10.5' and '10.5' is => int(0) 427- strcasecmp of '10.5' and '1.5' is => int(%d) 428- strcasecmp of '10.5' and '9.5' is => int(-%d) 429- strcasecmp of '10.5' and '11.5' is => int(-%d) 430- strcasecmp of '10.5' and '100.5' is => int(-%d) 431- strcasecmp of '10.5' and '105' is => int(-%d) 432- strcasecmp of '10.5' and '-10.5' is => int(%d) 433- strcasecmp of '10.5' and '10' is => int(%d) 434- strcasecmp of '10.5' and '0.5' is => int(%d) 435 436Iteration 1 437- strcasecmp of '1.5' and '10.5' is => int(-%d) 438- strcasecmp of '1.5' and '1.5' is => int(0) 439- strcasecmp of '1.5' and '9.5' is => int(-%d) 440- strcasecmp of '1.5' and '11.5' is => int(-%d) 441- strcasecmp of '1.5' and '100.5' is => int(-%d) 442- strcasecmp of '1.5' and '105' is => int(-%d) 443- strcasecmp of '1.5' and '-10.5' is => int(%d) 444- strcasecmp of '1.5' and '10' is => int(-%d) 445- strcasecmp of '1.5' and '0.5' is => int(%d) 446 447Iteration 2 448- strcasecmp of '9.5' and '10.5' is => int(%d) 449- strcasecmp of '9.5' and '1.5' is => int(%d) 450- strcasecmp of '9.5' and '9.5' is => int(0) 451- strcasecmp of '9.5' and '11.5' is => int(%d) 452- strcasecmp of '9.5' and '100.5' is => int(%d) 453- strcasecmp of '9.5' and '105' is => int(%d) 454- strcasecmp of '9.5' and '-10.5' is => int(%d) 455- strcasecmp of '9.5' and '10' is => int(%d) 456- strcasecmp of '9.5' and '0.5' is => int(%d) 457 458Iteration 3 459- strcasecmp of '11.5' and '10.5' is => int(%d) 460- strcasecmp of '11.5' and '1.5' is => int(%d) 461- strcasecmp of '11.5' and '9.5' is => int(-%d) 462- strcasecmp of '11.5' and '11.5' is => int(0) 463- strcasecmp of '11.5' and '100.5' is => int(%d) 464- strcasecmp of '11.5' and '105' is => int(%d) 465- strcasecmp of '11.5' and '-10.5' is => int(%d) 466- strcasecmp of '11.5' and '10' is => int(%d) 467- strcasecmp of '11.5' and '0.5' is => int(%d) 468 469Iteration 4 470- strcasecmp of '100.5' and '10.5' is => int(%d) 471- strcasecmp of '100.5' and '1.5' is => int(%d) 472- strcasecmp of '100.5' and '9.5' is => int(-%d) 473- strcasecmp of '100.5' and '11.5' is => int(-%d) 474- strcasecmp of '100.5' and '100.5' is => int(0) 475- strcasecmp of '100.5' and '105' is => int(-%d) 476- strcasecmp of '100.5' and '-10.5' is => int(%d) 477- strcasecmp of '100.5' and '10' is => int(%d) 478- strcasecmp of '100.5' and '0.5' is => int(%d) 479 480Iteration 5 481- strcasecmp of '105' and '10.5' is => int(%d) 482- strcasecmp of '105' and '1.5' is => int(%d) 483- strcasecmp of '105' and '9.5' is => int(-%d) 484- strcasecmp of '105' and '11.5' is => int(-%d) 485- strcasecmp of '105' and '100.5' is => int(%d) 486- strcasecmp of '105' and '105' is => int(0) 487- strcasecmp of '105' and '-10.5' is => int(%d) 488- strcasecmp of '105' and '10' is => int(%d) 489- strcasecmp of '105' and '0.5' is => int(%d) 490 491Iteration 6 492- strcasecmp of '-10.5' and '10.5' is => int(-%d) 493- strcasecmp of '-10.5' and '1.5' is => int(-%d) 494- strcasecmp of '-10.5' and '9.5' is => int(-%d) 495- strcasecmp of '-10.5' and '11.5' is => int(-%d) 496- strcasecmp of '-10.5' and '100.5' is => int(-%d) 497- strcasecmp of '-10.5' and '105' is => int(-%d) 498- strcasecmp of '-10.5' and '-10.5' is => int(0) 499- strcasecmp of '-10.5' and '10' is => int(-%d) 500- strcasecmp of '-10.5' and '0.5' is => int(-%d) 501 502Iteration 7 503- strcasecmp of '10' and '10.5' is => int(-%d) 504- strcasecmp of '10' and '1.5' is => int(%d) 505- strcasecmp of '10' and '9.5' is => int(-%d) 506- strcasecmp of '10' and '11.5' is => int(-%d) 507- strcasecmp of '10' and '100.5' is => int(-%d) 508- strcasecmp of '10' and '105' is => int(-%d) 509- strcasecmp of '10' and '-10.5' is => int(%d) 510- strcasecmp of '10' and '10' is => int(0) 511- strcasecmp of '10' and '0.5' is => int(%d) 512 513Iteration 8 514- strcasecmp of '0.5' and '10.5' is => int(-%d) 515- strcasecmp of '0.5' and '1.5' is => int(-%d) 516- strcasecmp of '0.5' and '9.5' is => int(-%d) 517- strcasecmp of '0.5' and '11.5' is => int(-%d) 518- strcasecmp of '0.5' and '100.5' is => int(-%d) 519- strcasecmp of '0.5' and '105' is => int(-%d) 520- strcasecmp of '0.5' and '-10.5' is => int(%d) 521- strcasecmp of '0.5' and '10' is => int(-%d) 522- strcasecmp of '0.5' and '0.5' is => int(0) 523 524#### Testing miscellaneous inputs #### 525--- Testing objects --- 526int(-%d) 527 528--- Testing arrays --- 529int(%d) 530int(%d) 531 532--- Testing a longer and heredoc string --- 533int(0) 534int(-%d) 535int(%d) 536 537--- Testing a heredoc null string --- 538int(-%d) 539int(-%d) 540 541--- Testing simple and complex syntax strings --- 542int(-%d) 543int(-%d) 544 545Warning: Undefined variable $strS in %s on line %d 546int(%d) 547int(-%d) 548int(-%d) 549 550--- Testing binary safe and binary chars --- 551int(%d) 552int(-%d) 553int(0) 554int(0) 555int(%d) 556 557--- Comparing long float values --- 558int(0) 559int(-%d) 560int(0) 561Done 562