3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace One\Thing\Foo { class A { function __construct() { echo "I am class A in namespace One\Thing\Foo\n"; } } function b() { echo "I am function b in namespace One\Thing\Foo\n"; } } namespace Two\My\Foo { class A { function __construct() { echo "I am class A in namespace Two\My\Foo\n"; } } function b() { echo "I am function b in namespace Two\My\Foo\n"; } } namespace Two\My { use One\Thing\Foo; new Foo\A; Foo\b(); new namespace\Foo\A; namespace\Foo\b(); }
Output for git.master, git.master_jit, rfc.property-hooks
I am class A in namespace One\Thing\Foo I am function b in namespace One\Thing\Foo I am class A in namespace Two\My\Foo I am function b in namespace Two\My\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:
38.86 ms | 405 KiB | 5 Q