3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class A { public abstract function getName(); } class B extends A { public function getName() { echo 'B'; } } class C extends A { public function getName() { echo 'C'; } } $b = new B; $b->getName(); $c = new C; $c->getName();
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.0.12, 7.0.14 - 7.3.0beta1
BC
Output for 7.0.13

Process exited with code 137.