3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
180.88 ms | 1395 KiB | 62 Q