3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define("foo", "bar"); echo foo; echo "\n"; define("TRUE", false); if (TRUE) { echo "TRUE"; } else { echo "FALSE"; }
Output for 5.1.3 - 5.6.28, 7.0.0 - 7.1.0
bar TRUE
Output for hhvm-3.10.0 - 3.12.0
bar Notice: Constant TRUE already defined in /in/tbrn0 on line 8 TRUE
Output for 4.3.0 - 5.1.2
bar FALSE