3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! for ($i=0; i< 10 ; $i++) { define('TEST'.$i,'$i); } echo TEST4;
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ''$i); ' (T_ENCAPSED_AND_WHITESPACE) in /in/vNVoU on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/vNVoU on line 7
Process exited with code 255.

preferences:
168.92 ms | 1399 KiB | 53 Q