3v4l.org

run code in 200+ 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 7.2.0 - 7.3.0rc4
Deprecated: The (unset) cast is deprecated in /in/RpSMr on line 3 NULL string(4) "test" Notice: Undefined variable: z in /in/RpSMr on line 9 NULL
Output for 5.0.4 - 7.1.20
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