3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('NULL','hello world'); define('True','hello world'); echo True; echo NULL; $a; if($a==NULL){ echo 'ok'; }else{ echo 'bad'; } ?>
Output for 5.1.3 - 7.2.0
1 Notice: Undefined variable: a in /in/EngNf on line 7 ok
Output for 5.1.0 - 5.1.2
hello worldhello world Notice: Undefined variable: a in /in/EngNf on line 7 bad
Output for 5.0.4 - 5.0.5
hello worldhello world Notice: Undefined variable: a in /in/EngNf on line 6 Notice: Undefined variable: a in /in/EngNf on line 7 bad
Output for 4.3.0 - 5.0.3
hello worldhello world Notice: Undefined variable: a in /in/EngNf on line 6 Notice: Undefined variable: a in /in/EngNf on line 7 bad