3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { var $prop = 10; function __construct($i=null){ if (! $i){ $i = 10; $this = new self(10); } $this->prop = $i; } } $b = new A(); var_dump($b);
Output for 4.4.9
object(a)(1) { ["prop"]=> int(10) }