3v4l.org

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