3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __construct() { $this->herp = 'derp'; } function bar() { return $this->herp(); } function baz() { $x = $this->bar(); var_dump(func_get_args()); var_dump($x); } } (new Foo())->baz(1,2,3);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property Foo::$herp is deprecated in /in/d0YAq on line 5 Fatal error: Uncaught Error: Call to undefined method Foo::herp() in /in/d0YAq:9 Stack trace: #0 /in/d0YAq(12): Foo->bar() #1 /in/d0YAq(18): Foo->baz(1, 2, 3) #2 {main} thrown in /in/d0YAq on line 9
Process exited with code 255.

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.46 ms | 401 KiB | 8 Q