3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php abstract class A { public abstract function g(); public static function f(){ echo 'f'; } } class B extends A { public static function f($f){ echo 'B::f'; } }
Output for 5.4.0 - 5.4.21
Strict Standards: Declaration of B::f() should be compatible with A::f() in /in/ekCA9 on line 12 Fatal error: Class B contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (A::g) in /in/ekCA9 on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Strict Standards: Declaration of B::f() should be compatible with that of A::f() in /in/ekCA9 on line 12 Fatal error: Class B contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (A::g) in /in/ekCA9 on line 12
Process exited with code 255.