3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 123; $b = 123; $c = 123; $d = 123; unset($a); var_dump($a); (unset)$c; var_dump($c);
based on GvuRq
Output for 7.2.0 - 7.3.0rc3
Deprecated: The (unset) cast is deprecated in /in/Qrp3U on line 11 Notice: Undefined variable: a in /in/Qrp3U on line 9 NULL int(123)
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.20
Notice: Undefined variable: a in /in/Qrp3U on line 9 NULL int(123)