3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { abstract public static function x(); } class bar extends foo { public static function x() { echo 1; }} bar::x();
Output for 5.3.0 - 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.