@ 2015-09-08T12:13:29Z <?php
$input = trim("0x030");
if(
str_split($input) == array(0,0,0,0) ||
strcmp($input, "0000") == 0 ||
strcmp($input, "000") == 0 ||
strcmp($input, "00") == 0 ||
strcmp($input, "0") == 0 ||
$input === 0 ||
preg_match("/^[\d]{1,}$/D", $input)
)print("FAIL");
if($input == "0000") print("SUCCESS");
print(chr($input));
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.27 , 8.2.0 - 8.2.17 , 8.3.0 - 8.3.4 Fatal error: Uncaught TypeError: chr(): Argument #1 ($codepoint) must be of type int, string given in /in/ZolDW:15
Stack trace:
#0 /in/ZolDW(15): chr('0x030')
#1 {main}
thrown in /in/ZolDW on line 15
Process exited with code 255 . Output for 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.31 , 7.4.0 - 7.4.33 Notice: A non well formed numeric value encountered in /in/ZolDW on line 15
Output for 7.3.32 - 7.3.33