3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('TRUE', false, true); if(TRUE) echo 'Ano'; else echo 'Ne'; $constants = get_defined_constants(true); foreach ($constants as $key => $values) { foreach ($values as $key2 => $val) { if ($key2 == 'TRUE') { echo "$key\n"; } } }
based on VC0q9
Output for 5.3.0 - 7.2.0
Notice: Constant true already defined in /in/a0qrh on line 2 AnoCore
Output for 5.0.0 - 5.2.17
Notice: Constant true already defined in /in/a0qrh on line 2 Anointernal
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
Notice: Constant true already defined in /in/a0qrh on line 2 Ano Warning: Wrong parameter count for get_defined_constants() in /in/a0qrh on line 7 Warning: Invalid argument supplied for foreach() in /in/a0qrh on line 8
Output for 4.3.11
Notice: Constant true already defined in /in/a0qrh on line 2 Ano Warning: Wrong parameter count for get_defined_constants() in /in/a0qrh on line 7