3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class B { } class G extends B { function __call($name, $arguments) { var_dump('G');} function f4missing($a) { B::f4missing(5); // __call checking happened at B } } $g = new G(); $g->f4missing(3);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined method B::f4missing() in /in/pY8cp:7 Stack trace: #0 /in/pY8cp(11): G->f4missing(3) #1 {main} thrown in /in/pY8cp on line 7
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined method B::f4missing() in /in/pY8cp on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined method: g->f4missing() in /in/pY8cp on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: f4missing() in /in/pY8cp on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: f4missing() in /in/pY8cp on line 7