3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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.3.21 - 5.6.17
Fatal error: Method B::__call() must take exactly 2 arguments in /in/DcenH on line 14
Process exited with code 255.