3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function f() { echo 'foo'; } } class B extends A { public function __call($name) { echo $name; } } $o = new B; $b->f();
Output for 7.0.0 - 7.0.2
Fatal error: Method B::__call() must take exactly 2 arguments in /in/DcenH on line 13
Process exited with code 255.
Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17
Fatal error: Method B::__call() must take exactly 2 arguments in /in/DcenH on line 14
Process exited with code 255.

preferences:
161.46 ms | 1387 KiB | 28 Q