3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = function () use (&$f) { unset($f); }; $f(); var_dump($f);
Output for 5.3.3 - 5.4.27
object(Closure)#1 (1) { ["static"]=> array(1) { ["f"]=> *RECURSION* } }
Output for 5.3.1 - 5.3.2
object(Closure)#1 (1) { ["static"]=> array(1) { ["f"]=> &object(Closure)#1 (1) { ["static"]=> array(1) { ["f"]=> *RECURSION* } } } }