<?php class foo { public function getFunc() { return function () { return true; }; } public function __destruct() { echo "Destructor\n"; } } $foo = new Foo(); $fn = $foo->getFunc(); unset($foo); echo "After Unset\n";
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`