3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! $1 = 1; $2 = 2; $3 = 3; $4 = 4; $5 = 5; echo "${q1}"; //outputs 1 for($i=1; $i<=5; $i++) { echo "${${i}}"; //how to make $i work here? }
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected '1' (T_LNUMBER), expecting variable (T_VARIABLE) or '$' in /in/6IvCg on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /in/6IvCg on line 4
Process exited with code 255.