fork(1) download
  1. <?php
  2. for ($i = 0; $i < 3; $i++) echo $i . "\n";
  3. for ($i = 0; $i < 3; ++$i) echo $i . "\n";
  4. $i = 0;
  5. while ( $i < 3) {
  6. echo $i . "\n";
  7. $i++;
  8. }
  9. $i = 0;
  10. while ( $i < 3) {
  11. echo $i . "\n";
  12. ++$i;
  13. }
  14. $i = 0;
  15. while ( $i < 3) echo $i++ . "\n";
  16. $i = 0;
  17. while ( $i < 3) echo ++$i . "\n";
Success #stdin #stdout 0.06s 52480KB
stdin
Standard input is empty
stdout
0
1
2
0
1
2
0
1
2
0
1
2
0
1
2
1
2
3