3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($x=1; $x<=10; $x++) { if($x<10) { echo "$x-"; } else { echo "$x"; } } ?> - See more at: http://www.w3resource.com/php-exercises/php-for-loop-exercises.php#EDITOR
based on 91KDC
Output for 4.3.0 - 7.1.0
1-2-3-4-5-6-7-8-9-10 - See more at: http://www.w3resource.com/php-exercises/php-for-loop-exercises.php#EDITOR