3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ($1 = 1; $1 <= 10; $1++2) { echo $1 . "\n" }
Output for 8.2.31 - 8.2.33, 8.3.0 - 8.3.33, 8.4.1 - 8.4.25, 8.5.0 - 8.5.10
Parse error: syntax error, unexpected integer "1", expecting variable or "{" or "$" in /in/EXLtF on line 3
Process exited with code 255.

preferences:
50.19 ms | 797 KiB | 3 Q