3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('TRUE', false); var_dump(true); var_dump(TRUE); var_dump(constant('TRUE')); var_dump(constant('true')); var_dump( true === TRUE ); var_dump();
Output for 5.3.0 - 5.6.30, 7.0.0 - 7.2.0
bool(true) bool(true) bool(false) bool(true) bool(true) Warning: var_dump() expects at least 1 parameter, 0 given in /in/bWDn0 on line 11
Output for hhvm-3.10.1 - 3.17.3
Notice: Constant TRUE already defined in /in/bWDn0 on line 3 bool(true) bool(true) bool(true) bool(true) bool(true) Warning: var_dump() expects exactly 1 parameter, 0 given in /in/bWDn0 on line 11
Output for 5.1.3 - 5.2.17
bool(true) bool(true) bool(false) bool(true) bool(true) Warning: Wrong parameter count for var_dump() in /in/bWDn0 on line 11
Output for 4.3.0 - 5.1.2
bool(true) bool(false) bool(false) bool(true) bool(false) Warning: Wrong parameter count for var_dump() in /in/bWDn0 on line 11