3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __get($key) { echo 'wut'; } } class Bar { public function __construct() { $this->wut = 'bar'; } public function __get($key) { echo $key; } } class Baz { public function __construct() { $this->wut = 'baz'; } } $foo = new Foo; $bar = new Bar; $baz = new Baz; var_dump([$foo->wut, $bar->wut, $baz->wut]);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property Bar::$wut is deprecated in /in/mli5P on line 10 Deprecated: Creation of dynamic property Baz::$wut is deprecated in /in/mli5P on line 16 wutarray(3) { [0]=> NULL [1]=> string(3) "bar" [2]=> string(3) "baz" }

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