3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __call() { echo "call"; } static function __callStatic() { echo "callStatic"; } } class B extends A { function foo() { parent::foo(); } } $b = new B(); $b->foo();
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
Fatal error: Method A::__call() must take exactly 2 arguments in /in/NbSW6 on line 5
Process exited with code 255.

preferences:
183.95 ms | 1395 KiB | 55 Q