3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function countFromAndTo($from, $to) { for ($counter = $from; $counter <= $to; $counter = $counter +1) { print $counter . PHP_EOL; } } print "Josh: ".PHP_EOL; countFromAndTo(5, 26); pring "Armando: ".PHP_EOL; countFromAndTo(27, 38); pring "Juan: ".PHP_EOL; countFromAndTo(-15,3);
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '"Armando: "' (T_CONSTANT_ENCAPSED_STRING) in /in/GSlEf on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/GSlEf on line 12
Process exited with code 255.