<?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);
You have javascript disabled. You will not be able to edit any code.