3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 5; function as(){ echo $x; }
Output for 5.4.11 - 5.4.45, 7.0.0 - 7.0.1
Parse error: syntax error, unexpected 'as' (T_AS), expecting identifier (T_STRING) or '(' in /in/7XCHK on line 6
Process exited with code 255.
Output for 5.5.24 - 5.6.16
Parse error: syntax error, unexpected 'as' (T_AS), expecting '(' in /in/7XCHK on line 6
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_AS, expecting T_STRING or '(' in /in/7XCHK on line 6
Process exited with code 255.