3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function a() { printf("%s\n", __FUNCTION__); } function b() { printf("%s\n", __FUNCTION__); } function c() { printf("%s\n", __FUNCTION__); } } namespace Bar { final class Util { public static function a() { printf("%s\n", __METHOD__); } public static function b() { printf("%s\n", __METHOD__); } public static function c() { printf("%s\n", __METHOD__); } } } namespace Baz { use function Foo\{a, b, c}; use Bar\Util; a(); b(); c(); Util::a(); Util::b(); Util::c(); }
Output for git.master_jit, git.master, rfc.property-hooks
Foo\a Foo\b Foo\c Bar\Util::a Bar\Util::b Bar\Util::c

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:
58.02 ms | 401 KiB | 8 Q