3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { abstract static function getData(); } class b extends a { static function getData { return "a"; } } var_dump(b::getData());
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.18
Strict Standards: Static function a::getData() should not be abstract in /in/ksLOE on line 3 Fatal error: Class a contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (a::getData) in /in/ksLOE on line 4
Process exited with code 255.

preferences:
176.03 ms | 1395 KiB | 54 Q