3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Concrete\Test { use DerpFoo; class Test { public function __construct(Concrete\Foo\FooInterface $foo) {} } $f = new Test(new \Concrete\BetterFoo\BetterFoo); } namespace Concrete\Foo { class Foo implements FooInterface { public function Derp() {} } interface FooInterface { public function Derp(); } class_alias('\Concrete\Foo\Foo', 'DerpFoo'); } namespace Concrete\BetterFoo { class BetterFoo extends \Concrete\Foo\Foo implements FooInterface {} }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "Concrete\BetterFoo\BetterFoo" not found in /in/N0r64:9 Stack trace: #0 {main} thrown in /in/N0r64 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:
43.61 ms | 401 KiB | 8 Q