<?php $i=0; foreach(range(0, 10) as $n) { if($i == 3){ break; } echo $n; $i++;}
Standard input is empty
012
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!