3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php abstract class BaseCls{ protected abstract function getName($param); } class ChildCls extends BaseCls{ public function getName(){ } }
Output for 5.4.0 - 5.4.25
Fatal error: Declaration of ChildCls::getName() must be compatible with BaseCls::getName($param) in /in/rmhde on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Fatal error: Declaration of ChildCls::getName() must be compatible with that of BaseCls::getName() in /in/rmhde on line 10
Process exited with code 255.