3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = 'foo'; $1a = 'bar';
Output for 8.0.0 - 8.0.11
Parse error: syntax error, unexpected integer "1", expecting variable or "{" or "$" in /in/dVGQD on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.31, 7.4.0 - 7.4.24
Parse error: syntax error, unexpected '1' (T_LNUMBER), expecting variable (T_VARIABLE) or '{' or '$' in /in/dVGQD on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.40
Parse error: syntax error, unexpected '1' (T_LNUMBER), expecting variable (T_VARIABLE) or '$' in /in/dVGQD on line 5
Process exited with code 255.

preferences:
167.79 ms | 998 KiB | 7 Q