3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class _ { public function __destruct() {new self;} } class __ { private $f; public function __construct(&$f) { $this->f = &$f; } public function __destruct() { $this->f = function(){new _;}; } } $f = function () use (&$f) { $t = new __($f); echo "All is good"; }; $f(); $f();
Output for 5.3.0 - 5.4.45
All is good
Process exited with code 139.