3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $undef; $undef2 = null; $undef3 = null; unset($undef3); echo '$undef === $undef2?'; var_dump($undef === $undef2); echo '$undef === $undef3?'; var_dump($unedf === $undef3); echo '$undef2 === $undef3?'; var_dump($undef2 === $undef3);
Output for 7.0.0 - 7.2.0
$undef === $undef2? Notice: Undefined variable: undef in /in/Tc9PW on line 8 bool(true) $undef === $undef3? Notice: Undefined variable: unedf in /in/Tc9PW on line 11 Notice: Undefined variable: undef3 in /in/Tc9PW on line 11 bool(true) $undef2 === $undef3? Notice: Undefined variable: undef3 in /in/Tc9PW on line 14 bool(true)
Output for 5.3.18 - 5.6.28
$undef === $undef2? Notice: Undefined variable: undef in /in/Tc9PW on line 8 bool(true) $undef === $undef3? Notice: Undefined variable: undef3 in /in/Tc9PW on line 11 Notice: Undefined variable: unedf in /in/Tc9PW on line 11 bool(true) $undef2 === $undef3? Notice: Undefined variable: undef3 in /in/Tc9PW on line 14 bool(true)