fork(1) download
  1. <?php
  2.  
  3. for($i == 0; $i < 10; $i++)
  4. echo "For sem chaves: ".$i."\n";
  5.  
  6. $i = 0;
  7.  
  8. while($i < 10)
  9. echo "While sem chaves: ". $i++."\n";
Success #stdin #stdout #stderr 0.01s 20568KB
stdin
Standard input is empty
stdout
For sem chaves: 
For sem chaves: 1
For sem chaves: 2
For sem chaves: 3
For sem chaves: 4
For sem chaves: 5
For sem chaves: 6
For sem chaves: 7
For sem chaves: 8
For sem chaves: 9
While sem chaves: 0
While sem chaves: 1
While sem chaves: 2
While sem chaves: 3
While sem chaves: 4
While sem chaves: 5
While sem chaves: 6
While sem chaves: 7
While sem chaves: 8
While sem chaves: 9
stderr
PHP Notice:  Undefined variable: i in /home/8R1Q1y/prog.php on line 3
PHP Notice:  Undefined variable: i in /home/8R1Q1y/prog.php on line 3
PHP Notice:  Undefined variable: i in /home/8R1Q1y/prog.php on line 4
PHP Notice:  Undefined variable: i in /home/8R1Q1y/prog.php on line 3