3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "some value"; unset($var); $isnull = is_null($var); $isnull2 = ($var === null); $isset = isset($var); var_dump($var); var_dump($isnull); var_dump($isnull2); var_dump($isset);
Output for 8.0.1 - 8.0.20, 8.1.0 - 8.1.7
Warning: Undefined variable $var in /in/lUcVV on line 7 Warning: Undefined variable $var in /in/lUcVV on line 8 Warning: Undefined variable $var in /in/lUcVV on line 10 NULL bool(true) bool(true) bool(false)
Output for 7.4.0 - 7.4.30
Notice: Undefined variable: var in /in/lUcVV on line 7 Notice: Undefined variable: var in /in/lUcVV on line 8 Notice: Undefined variable: var in /in/lUcVV on line 10 NULL bool(true) bool(true) bool(false)

preferences:
29.22 ms | 410 KiB | 5 Q