3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class BaseItem { } class BaseCollection { abstract function test(BaseItem $base); } class RealItem { } class RealCollection extends BaseCollection { function test(RealItem $real) { } }
Output for 5.3.0 - 5.4.30
Fatal error: Class BaseCollection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (BaseCollection::test) in /in/FHKVo on line 3
Process exited with code 255.