3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { public abstract static function f(); } class B extends A { public function f(){ echo 'f'; } } $b=new B();
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21
Strict Standards: Static function A::f() should not be abstract in /in/2LYdR on line 5 Fatal error: Cannot make static method A::f() non static in class B in /in/2LYdR on line 11
Process exited with code 255.

preferences:
193.12 ms | 1400 KiB | 57 Q