3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('NULL','hello world'); $a; if($a==NuLL){ echo 'ok'; }else{ echo 'bad'; } ?>
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: a in /in/OutNb on line 4 ok
Output for hhvm-3.12.0
Notice: Constant NULL already defined in /in/OutNb on line 2 Notice: Undefined variable: a in /in/OutNb on line 3 Notice: Undefined variable: a in /in/OutNb on line 4 ok
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: a in /in/OutNb on line 3 Notice: Undefined variable: a in /in/OutNb on line 4 ok
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/OutNb on line 3 Notice: Undefined variable: a in /in/OutNb on line 4 ok