3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface superbase { public static function ball(); public static function foo(); } abstract class base implements superbase { public static function ball(); public static function foo(){ echo 'foo'; } } class child extends base{ public static function ball(){ echo 'baseball'; } } child::foo(); child::ball();
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19, 5.5.0 - 5.5.3
Fatal error: Non-abstract method base::ball() must contain body in /in/Md6h6 on line 8
Process exited with code 255.

preferences:
176.51 ms | 1395 KiB | 59 Q