3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b = null; var_dump($a); var_dump($b); var_dump($a==null); var_dump($b==null); var_dump($a===null); var_dump($b===null);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: a in /in/q0tPV on line 5 NULL NULL Notice: Undefined variable: a in /in/q0tPV on line 8 bool(true) bool(true) Notice: Undefined variable: a in /in/q0tPV on line 11 bool(true) bool(true)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/q0tPV on line 5 NULL NULL Notice: Undefined variable: a in /in/q0tPV on line 8 bool(true) bool(true) Notice: Undefined variable: a in /in/q0tPV on line 11 bool(true) bool(true)