<?php class C {} $b = new B(); class A extends C { } class B { protected $a; public function __construct(){ $this->a = new A(); } } var_dump ($b);
You have javascript disabled. You will not be able to edit any code.