3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __call($name, $args) { echo "Not static\n"; } public static function __callStatic($name, $args) { echo "Static\n"; } } class B extends A { public function test() { forward_static_call(array('A', 'test')); call_user_func(array('A', 'test')); } } class C { public function test() { forward_static_call(array('A', 'test')); } } A::test(); $b = new B(); $b->test(); $c = new C(); $c->test();
Output for git.master, git.master_jit, rfc.property-hooks
Static Not static Not static Static

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