3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { const BAZ = 42; const AAZ = 24; function bar() { return 'foo.bar'; } function aar() { return 'foo.bar2'; } } namespace { use function foo\bar as foo_bar, foo\aar as foo_bar2; use const foo\BAZ as FOO_BAZ, foo\AAZ as FOO_BAZ2; var_dump(foo_bar()); var_dump(FOO_BAZ); var_dump(foo_bar2()); var_dump(FOO_BAZ2); }
Output for git.master, git.master_jit, rfc.property-hooks
string(7) "foo.bar" int(42) string(8) "foo.bar2" int(24)

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