3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; $b = 1; unset($a); $b = (unset)$b; var_dump($a, $b);
Output for 7.2.0 - 7.3.0rc4
Deprecated: The (unset) cast is deprecated in /in/PCq3C on line 5 Notice: Undefined variable: a in /in/PCq3C on line 7 NULL NULL
Output for 5.0.4 - 7.1.20
Notice: Undefined variable: a in /in/PCq3C on line 7 NULL NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/PCq3C on line 7 NULL NULL