fork(1) download
  1. <?php
  2. function block($x) {
  3. echo $x . PHP_EOL;
  4. }
  5. $i = 0;
  6. do {
  7. if ($i == 0) {block("\(father) \(name)"); $i++;}
  8. else if ($i == 1) {block("\(mother) \(name)"); $i++;}
  9. else if ($i == 2) {block("\(child) \(name)"); $i++;}
  10. else break;
  11. } while(true);
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
\(father) \(name)
\(mother) \(name)
\(child) \(name)