3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Test { abstract public static function test(); } class Test2 extends Test { public static function test() { } }
Output for 8.1.23 - 8.1.28, 8.2.10 - 8.2.18, 8.3.0 - 8.3.6
Output for 5.3.23, 5.4.13
Strict Standards: Static function Test::test() should not be abstract in /in/5nD0g on line 5 Fatal error: Constructor Test::test() cannot be static in /in/5nD0g on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.22, 5.4.0 - 5.4.12
Strict Standards: Static function Test::test() should not be abstract in 6sruD on line 5 Fatal error: Constructor Test::test() cannot be static in 6sruD on line 6
Process exited with code 255.

preferences:
76.13 ms | 402 KiB | 65 Q