3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { public function __call($x) { echo $x; } } var_dump(method_exists('X', 'xxx')); var_dump(is_callable(array(new X, 'xxx')));
Output for 7.0.0 - 7.0.1
Fatal error: Method X::__call() must take exactly 2 arguments in /in/TGktS on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Fatal error: Method X::__call() must take exactly 2 arguments in /in/TGktS on line 7
Process exited with code 255.

preferences:
162.29 ms | 1395 KiB | 25 Q