3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { } class A { public function foo(/* C */ $c) { echo 'c'; } } class B extends A { public function foo(C $c) { echo 'd'; } } $c = new C(); $b = new B(); echo $b->foo($c);

This is an error 404

There are `0` results


preferences:
130.38 ms | 1451 KiB | 7 Q