3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { $this->wut = 'bar'; } public function __get($key) { return '__get'; } } class Bar { public $wut; public function __construct() { $this->wut = 'bar'; } public function __get($key) { return '__get'; } } 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 Foo::$wut is deprecated in /in/H21IM on line 5 Deprecated: Creation of dynamic property Baz::$wut is deprecated in /in/H21IM on line 18 array(3) { [0]=> string(3) "bar" [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:
53.89 ms | 402 KiB | 8 Q