3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function trues() { foreach(get_defined_constants() as $k => $v) if(strtolower($k) === "true") echo "$k=$v\n"; } trues(); define('TRUE', 3); trues();
based on DI1ZE
Output for 7.0.0 - 7.1.0
TRUE=1 TRUE=1 TRUE=3
Output for hhvm-3.10.0 - 3.12.0
true=1 TRUE=1 Notice: Constant TRUE already defined in /in/TalLo on line 9 true=1 TRUE=1
Output for 4.3.0 - 5.6.28
TRUE=1 TRUE=3