fork(8) download
  1. <?php
  2.  
  3. $stdin = file("php://stdin");
  4.  
  5. $content = "";
  6.  
  7. for ($i = 2; $i < count($stdin); $i += 3) {
  8. $content .= $stdin[$i];
  9. }
  10.  
  11. echo $content;
Success #stdin #stdout 0.03s 82880KB
stdin
1
2
3
4
5
6
7
8
stdout
3
6