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 { public function two() { return 2; } } $foo = new Foo(); var_dump($foo->one()); var_dump($foo->two());
based on DbIFZ
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
int(1) int(2)