3v4l.org

run code in 300+ PHP versions simultaneously
<?php class class {} class Foo { function list() { } function array() { } function string() { } function if() { } function function () { } function method() { } }
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) in /in/B0oan on line 3
Process exited with code 255.

preferences:
183.81 ms | 1395 KiB | 67 Q