3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Abs { } $a = new class extends abstract class {}
Output for 7.1.0 - 7.1.14, 7.2.0 - 7.2.2
Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) or namespace (T_NAMESPACE) or \\ (T_NS_SEPARATOR) in /in/p9bbs on line 8
Process exited with code 255.

preferences:
160.34 ms | 1406 KiB | 25 Q