Test1 - 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 Test1.php

  1. <?php
  2. $f = 5
  3. $result2 = 0
  4. for($i = 1; $i <= 10; $i++){
  5.     $result1 = $i + $f;
  6.     $result2 = $result2 + $result1
  7. }
  8. echo $result2;
  9.  
File Description
  • Test1
  • PHP Code
  • 08 May-2023
  • 131 Bytes
You can Share it: