3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __call($name, $arguments) { call_user_func_array(array($this, "_{$name}"), $arguments); } public static function __callStatic($name, $arguments) { call_user_func_array(get_class() . "::_static_{$name}", $arguments); } public function _test() { print "in _test();\n"; } public static function _static_test() { print "in _static_test();\n"; } } $a = new A; $a->test(); A::test();
Output for git.master, git.master_jit, rfc.property-hooks
in _test(); in _static_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:
55.65 ms | 401 KiB | 8 Q