<?phpwhile(fscanf(STDIN,"%d\n",$num)){ if($num == 42) break; echo $num."\n";}?>
1 2 88 42 99
1 2 88
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!