3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = range(0,20); $limit = 5; foreach($a as $i) { echo $i . "\n<br/>"; if(!$limit--) break; } for($a = 0; $a <= 5; $a++) { echo $a . "\n<br/>"; }

Abusive script

This script was stopped while abusing our resources

Output for 5.3.0 - 5.4.28
0 <br/>1 <br/>2 <br/>3 <br/>4 <br/>5 <br/>0 <br/>1 <br/>2 <br/>3 <br/>4 <br/>5 <br/>