3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { public function __call($m) { } } class Y { } var_dump(is_callable([new X, 'wa']), is_callable([new Y, 'wa']));
Output for 7.0.0 - 7.0.1
Fatal error: Method X::__call() must take exactly 2 arguments in /in/LZjce 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/LZjce on line 8
Process exited with code 255.

preferences:
169.52 ms | 1395 KiB | 25 Q