3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $field; function __construct(){ $this->field = new B; } function __debugInfo(){ return ["should only appear in dump"]; } } class B { private $field; function __construct(){ $this->field = new stdclass; } function __debugInfo(){ return ["should only appear in dump"]; } } $not_debug = (array)new A; var_dump($not_debug);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["Afield"]=> object(B)#2 (1) { [0]=> string(26) "should only appear in dump" } }

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:
66.11 ms | 401 KiB | 8 Q