3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Test { public static function abstractMethod(); } class Child extends Test { public static function abstractMethod() { return 'testString'; } } echo Child::abstractMethod();
Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
Fatal error: Non-abstract method Test::abstractMethod() must contain body in /in/95L67 on line 5
Process exited with code 255.

preferences:
176.69 ms | 1395 KiB | 28 Q