fork(5) download
  1. <?php
  2. $i = 0;
  3. while ($i++ < 4) {
  4. switch ($i) {
  5. case 1:
  6. echo $i . "a\n";
  7. continue;
  8. echo $i . "b\n";
  9. case 2:
  10. echo $i . "c\n";
  11. continue 2;
  12. echo $i . "d\n";
  13. case 3:
  14. echo $i . "e\n";
  15. break;
  16. echo $i . "f\n";
  17. case 4:
  18. echo $i . "g\n";
  19. break 2;
  20. echo $i . "h\n";
  21. }
  22. echo "X\n";
  23. }
  24. ?>
Success #stdin #stdout 0s 82880KB
stdin
Standard input is empty
stdout
1a
X
2c
3e
X
4g