<?php class A { function __construct(){ if(isset($this)){ $this->baz = 10; }else{ return new self(); } } } var_dump(A::__construct());
You have javascript disabled. You will not be able to edit any code.