3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface I { public function qwer(); } abstract class A { public function asdf(C $a) { $a->qwer(); } } class C implements 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
yep