3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { abstract public static function test(); }
Output for 7.0.0 - 7.0.2
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Test has a deprecated constructor in /in/DogmX on line 3 Fatal error: Constructor Test::test() cannot be static in /in/DogmX on line 3
Process exited with code 255.
Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17
Strict Standards: Static function Test::test() should not be abstract in /in/DogmX on line 5 Fatal error: Constructor Test::test() cannot be static in /in/DogmX on line 6
Process exited with code 255.

preferences:
176.96 ms | 1395 KiB | 28 Q