3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a { abstract static function getData(); } class b extends a { static function getData { return "a"; } } var_dump(b::getData());
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.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.