3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 123; $c = 123; (unset)$c; var_dump($c); $r = '1'; (int) $r; var_dump($r); unset($a); var_dump($a);
based on 92mfR
Output for 7.2.0 - 7.3.0rc3
Deprecated: The (unset) cast is deprecated in /in/cbqI5 on line 6 int(123) string(1) "1" Notice: Undefined variable: a in /in/cbqI5 on line 14 NULL
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.20
int(123) string(1) "1" Notice: Undefined variable: a in /in/cbqI5 on line 14 NULL