<?php class x { public function __construct() { $x =& $this; $x = new stdClass; var_dump($this); } } $a=new x; var_dump($a);
You have javascript disabled. You will not be able to edit any code.