fork download
  1. <?php
  2.  
  3. while($number = (int) fgets(STDIN)){
  4. if ($number === 42) {
  5. }
  6. echo $number."\n";
  7. }
  8.  
Success #stdin #stdout 0.04s 23632KB
stdin
1
2
88
42
99
stdout
1
2
88