3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface ContainerInterface { public function get($id); public function has($id); } class container implements ContainerInterface { public function has($id, $isCallable = true) { } } $cont = new Container();
Output for 7.0.0 - 7.2.0
Fatal error: Class container contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ContainerInterface::get) in /in/vSvr6 on line 9
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Class container contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ContainerInterface::get) in /in/vSvr6 on line 15
Process exited with code 255.