Test_Lindnau - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of Test_Lindnau.php

  1.  
  2. <?php
  3.  
  4.     $a = 10;  //Anzahl des auszugebenden Fibonacci Zahlen
  5.     $fib = array();
  6.     
  7.     $fib[0] = 1;
  8.     $fib[1] = 1;
  9.             
  10.     for($i = 1 ;$i <= $a; $i++)
  11.     {
  12.         $fib[$i+1] = $fib[$i-1] + $fib[$i];
  13.         echo $fib[$i-1];
  14.         echo "     ";
  15.     }
  16. ?>
File Description
  • Test_Lindnau
  • PHP Code
  • 11 Sep-2023
  • 275 Bytes
You can Share it: