3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { } function deleteMe(&$obj) { $obj = (unset) $obj; } $foo = new Foo(); var_dump($foo); deleteMe($foo); var_dump($foo);
Output for 7.2.0
Deprecated: The (unset) cast is deprecated in /in/5sXgk on line 9 object(Foo)#1 (0) { } NULL
Output for 5.0.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.1.10
object(Foo)#1 (0) { } NULL
Output for 4.3.0 - 4.4.9
object(foo)(0) { } NULL