3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test { class MyClass { public static function test() { return "test"; } } } namespace Test2 { use Test\MyClass; $arr = array(1,2,3,4,5); var_dump(array_map('Test\MyClass::test', $arr)); }
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(4) "test" [1]=> string(4) "test" [2]=> string(4) "test" [3]=> string(4) "test" [4]=> string(4) "test" }

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