3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 1; $i <= 50; $i++) { echo sprintf("iteration %s", $i); }
Output for 4.3.0 - 7.1.0
iteration 1iteration 2iteration 3iteration 4iteration 5iteration 6iteration 7iteration 8iteration 9iteration 10iteration 11iteration 12iteration 13iteration 14iteration 15iteration 16iteration 17iteration 18iteration 19iteration 20iteration 21iteration 22iteration 23iteration 24iteration 25iteration 26iteration 27iteration 28iteration 29iteration 30iteration 31iteration 32iteration 33iteration 34iteration 35iteration 36iteration 37iteration 38iteration 39iteration 40iteration 41iteration 42iteration 43iteration 44iteration 45iteration 46iteration 47iteration 48iteration 49iteration 50