3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class myBaseClass { abstract protected function doSomething(); function rerere() { return "..."; } } class myClass extends myBaseClass { public function doSomething() { rerere(); } } $implementor = new myClass(); $implementor->doSomething();
based on NhBdL
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function rerere() in /in/PFu1Y:17 Stack trace: #0 /in/PFu1Y(24): myClass->doSomething() #1 {main} thrown in /in/PFu1Y on line 17
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function rerere() in /in/PFu1Y on line 17
Process exited with code 255.