3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function objectunset(stdClass $object, $Callback) { $Callback(); } $object = new stdClass(); $Callback = function () use (&$object) {unset($object);}; objectunset($object, $Callback); var_dump($object);
based on dZ2Uv
Output for 5.6.0 - 7.3.0rc4
object(stdClass)#1 (0) { }