3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface FooInterface { public function one(); public function two(); } abstract class FooBase implements FooInterface { public function one() { return 1; } } class Foo extends FooBase { } $foo = new Foo(); var_dump($foo->one()); var_dump($foo->two());
based on NJmjJ
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Fatal error: Class Foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (FooInterface::two) in /in/aCOsE on line 12
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Class Foo contains abstract method (two) and must therefore be declared abstract or implement the remaining methods in /in/aCOsE:12 Stack trace: #0 {main}
Process exited with code 255.