3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print('TRUE == "foo" : '); var_dump(TRUE == "foo"); print(' "foo" == 0 : '); var_dump("foo" == 0); print(' TRUE == 0 : '); var_dump(TRUE == 0); var_dump(TRUE == "foo" == 0);
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected '==' (T_IS_EQUAL) in /in/jlEk2 on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_IS_EQUAL in /in/jlEk2 on line 12
Process exited with code 255.