3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new Obj; $obj->oele['boele'][] = 'foo'; print_r($obj); var_dump($obj->bar); class Obj { function __construct() { $this->foo = 'bar'; } function &__get($name) { $this->$name = null; $var = &$this->$name; switch ( $name ) { case 'bar': $var = 'foo'; break; } return $this->$name; } }
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property Obj::$foo is deprecated in /in/ZA8uN on line 12 Deprecated: Creation of dynamic property Obj::$oele is deprecated in /in/ZA8uN on line 16 Obj Object ( [foo] => bar [oele] => Array ( [boele] => Array ( [0] => foo ) ) ) Deprecated: Creation of dynamic property Obj::$bar is deprecated in /in/ZA8uN on line 16 string(3) "foo"

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