3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 'test'; $y = (unset) $x; var_dump($y); var_dump($x); $z = 'test'; unset($z); var_dump($z);
Output for 5.0.4 - 7.1.0
NULL string(4) "test" Notice: Undefined variable: z in /in/RpSMr on line 9 NULL
Output for 4.3.0 - 5.0.3
NULL string(4) "test" Notice: Undefined variable: z in /in/RpSMr on line 9 NULL