3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.