3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace FOO; function if(){}
Output for 5.6.38, 7.1.0 - 7.1.23, 7.2.0 - 7.2.11
Parse error: syntax error, unexpected 'if' (T_IF), expecting '(' in /in/KasYA on line 4
Process exited with code 255.

preferences:
166.33 ms | 1395 KiB | 44 Q