3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { public abstract function g(); public static function f(){ echo 'f'; } } class B extends A { public static function f(){ echo 'B::f'; } }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21, 5.5.0 - 5.5.5
Fatal error: Class B contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (A::g) in /in/d97NA on line 12
Process exited with code 255.

preferences:
177.64 ms | 1395 KiB | 63 Q