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