3v4l.org

run code in 300+ PHP versions simultaneously
<?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());
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of Base::__debugInfo() should either be compatible with ArrayObject::__debugInfo(): array, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/ddq2i on line 9 object(Child)#1 (1) { ["parent"]=> array(1) { ["test"]=> int(123) } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.91 ms | 401 KiB | 8 Q