fork download
  1. <?php
  2. // your code goes here
  3.  
  4. $arr = [
  5. "Eins",
  6. "Zwei",
  7. "Drei",
  8. "Vier",
  9. "Fünf"
  10. ];
  11.  
  12. for ($i=count($arr)-1; $i>=0; $i=$i-1)
  13. {
  14. echo $arr[$i]."\n";
  15. }
Success #stdin #stdout 0.01s 24444KB
stdin
Standard input is empty
stdout
Fünf
Vier
Drei
Zwei
Eins