3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass(); $obj->1 = 1;
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected '1' (T_LNUMBER), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /in/eBSYA on line 5
Process exited with code 255.

preferences:
167.66 ms | 1395 KiB | 36 Q