fork(1) download
  1. <?php
  2. function block($x) {
  3. echo $x . PHP_EOL;
  4. }
  5. foreach(range(0, 2) as $i) {
  6. switch($i) {
  7. case 0: block("\(father) \(name)"); break;
  8. case 1: block("\(mother) \(name)"); break;
  9. case 2: block("\(child) \(name)"); break;
  10. default: break;
  11. }
  12. }
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
\(father) \(name)
\(mother) \(name)
\(child) \(name)