3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((boolean)false == empty("0")); // replaced (string) var_dump((string)"false" == is_numeric(0); // replaced (int)
Output for 5.4.18
Parse error: syntax error, unexpected '"0"' (T_CONSTANT_ENCAPSED_STRING) in /in/p5CWD on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected '"0"' (T_CONSTANT_ENCAPSED_STRING) in /in/2DA7v on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/2DA7v on line 3
Process exited with code 255.

preferences:
172.17 ms | 1395 KiB | 54 Q