3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { } class B extends A { } class C { public function f(B $x); } class D extends C { public function f(A $x) { } }
Output for 5.3.0 - 5.4.31
Fatal error: Non-abstract method C::f() must contain body in /in/N1XWm on line 7
Process exited with code 255.