3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('CONSTANT', 1); define('_CONSTANT', 0); define('EMPTY', ''); $a = '0'; if (!empty($a)) { if (!(boolean) _CONSTANT) { echo 1; } } else if (constant('CONSTANT') == 1) { echo 2; }
based on ctqMt
Output for 4.3.0 - 7.1.0
2