3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Node { function &__get($name) { $value = null; $this->$name = &$value; return $value; } } $node = new Node; $node->title = 'foo'; $node->menu['enabled'] = 1; $node->rer_fields[] = 'bar'; var_dump($node);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property Node::$title is deprecated in /in/BNCk0 on line 12 Deprecated: Creation of dynamic property Node::$menu is deprecated in /in/BNCk0 on line 6 Deprecated: Creation of dynamic property Node::$rer_fields is deprecated in /in/BNCk0 on line 6 object(Node)#1 (3) { ["title"]=> string(3) "foo" ["menu"]=> array(1) { ["enabled"]=> int(1) } ["rer_fields"]=> array(1) { [0]=> string(3) "bar" } }

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:
42.22 ms | 402 KiB | 8 Q