3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $valueOfTrue = 0; // this was coming from config in real-world. $valueOfFalse = 1; // Same here. ^ define('true', $valueOfTrue, true); define('false', $valueOfFalse, true); var_dump(true, false); // Happy debugging...
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
Notice: Constant true already defined in /in/jfZGb on line 5 Notice: Constant false already defined in /in/jfZGb on line 6 bool(true) bool(false)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/jfZGb on line 8
Process exited with code 255.