3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define(TRUE, false); define(FALSE, true); var_dump(true); var_dump(TRUE); var_dump(constant('TRUE')); var_dump(constant('true')); var_dump( true === TRUE ); echo constant("TEST") var_dump(get_defined_constants(1));
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'var_dump' (T_STRING), expecting ',' or ';' in /in/kUlBk on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/kUlBk on line 12
Process exited with code 255.