<?php class Base extends ArrayObject{ var $parent = true; var $another_prop = 123; public function __construct() { $this['test'] = 123; } public function __debugInfo() { return [ 'parent'=>$this->getArrayCopy() ]; } } class Child extends Base { var $parent = false; } var_dump(new Child());
You have javascript disabled. You will not be able to edit any code.