fork(1) download
  1. <?php
  2.  
  3. $arr = range(1, 5);
  4.  
  5. foreach($arr as $item) {
  6. echo $item, PHP_EOL;
  7. $arr[] = $item;
  8. }
  9.  
  10.  
Success #stdin #stdout 0.01s 82560KB
stdin
Standard input is empty
stdout
1
2
3
4
5