3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
Notice: Constant true already defined in /in/a0qrh on line 2 AnoCore
Output for hhvm-3.10.0 - 3.12.0
Warning: Case insensitive constant names are not supported in HipHop in /in/a0qrh on line 2 Notice: Constant TRUE already defined in /in/a0qrh on line 2 Ano Warning: Invalid argument supplied for foreach() in /in/a0qrh on line 13 Core
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