3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=62330 class A { public function __call($name, $args) { echo "NO\n"; } public static function __callStatic($name, $args) { echo "YES\n"; } } class B extends A { public function test() { forward_static_call('A', 'test'); } } class C { public function test() { forward_static_call('A', 'test'); } } A::test(); $b = new B(); $b->test(); $c = new C(); $c->test();
Output for git.master, git.master_jit, rfc.property-hooks
YES Fatal error: Uncaught TypeError: forward_static_call(): Argument #1 ($callback) must be a valid callback, function "A" not found or invalid function name in /in/C8irs:20 Stack trace: #0 /in/C8irs(20): forward_static_call('A', 'test') #1 /in/C8irs(35): B->test() #2 {main} thrown in /in/C8irs on line 20
Process exited with code 255.

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