3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { abstract public static function x(); } class bar extends foo { public static function x() { echo 1; }} bar::x();
Output for 5.3.25 - 5.3.26, 5.4.16
Strict Standards: Static function foo::x() should not be abstract in /in/KjvWJ on line 3 Fatal error: Class foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (foo::x) in /in/KjvWJ on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.15
Strict Standards: Static function foo::x() should not be abstract in ePjlF on line 3 Fatal error: Class foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (foo::x) in ePjlF on line 3
Process exited with code 255.

preferences:
175.82 ms | 1395 KiB | 51 Q