fork download
  1. <?php
  2. if(true) :
  3. echo "teste\n";
  4. echo "teste2\n";
  5. endif;
  6.  
  7. $array = array('teste', 'teste2');
  8. foreach($array as $item) :
  9. echo $item."\n";
  10. endforeach;
  11.  
  12. for($i = 0; $i < 5; $i++) :
  13. echo $i."\n";
  14. endfor;
  15.  
  16. while(true) :
  17. echo 'while..';
  18. break;
  19. endwhile;
  20. ?>
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
teste
teste2
teste
teste2
0
1
2
3
4
while..