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") var_dump($k,$v); } trues(); echo "----\n"; define('True', 3); trues();
based on 82olB
Output for 4.3.0 - 7.1.0
string(4) "TRUE" bool(true) ---- string(4) "TRUE" bool(true) string(4) "True" int(3)