3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class I { public function qwer(); } abstract class A { public function asdf(I $a) { $a->qwer(); } } class C extends I { public function qwer() { echo "yep"; } } class B extends A { public function asdf(C $asdf) { parent::asdf($asdf); } } $par = new C(); (new B())->asdf($par);
Output for 7.1.0
Fatal error: Non-abstract method I::qwer() must contain body in /in/aGB1I on line 4
Process exited with code 255.