<?php while($number = (int) fgets(STDIN)){ if ($number === 42) { exit; } echo $number."\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!