3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function __construct($i=null){ if (! $i) $this = new self(10); } } $b = new A(); var_dump($b);
Output for 4.4.9
object(a)(0) { }