3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
$undef === $undef2? Warning: Undefined variable $undef in /in/Tc9PW on line 8 bool(true) $undef === $undef3? Warning: Undefined variable $unedf in /in/Tc9PW on line 11 Warning: Undefined variable $undef3 in /in/Tc9PW on line 11 bool(true) $undef2 === $undef3? Warning: Undefined variable $undef3 in /in/Tc9PW on line 14 bool(true)
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
$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 7.3.32 - 7.3.33
$undef === $undef2?bool(true) $undef === $undef3?bool(true) $undef2 === $undef3?bool(true)
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 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)

preferences:
173.02 ms | 403 KiB | 228 Q