fork download
  1. <?php
  2. while(fscanf(STDIN,"%d\n",$num))
  3. {
  4.  
  5. if($num == 42)
  6. break;
  7. echo $num."\n";
  8. }
  9. ?>
Success #stdin #stdout 0.01s 24400KB
stdin
1
2
88
42
99
stdout
1
2
88