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(); echo "----\n"; define('TRUE', 3); trues();
based on TalLo
Output for 7.0.0 - 7.1.0
TRUE=1 ---- TRUE=1 TRUE=3
Output for 4.3.0 - 5.6.28
TRUE=1 ---- TRUE=3