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

  1. <?php
  2. $a=[-1,4,3,2,8,9,0,-3,9,4];
  3. $s=0;
  4. for ($i=0; $i<=9; $i++){
  5.     if($a[$i] < $i) {
  6.         $s = $s + $i; 
  7.     }
  8. }
File Description
  • Qwe
  • PHP Code
  • 09 Aug-2022
  • 117 Bytes
You can Share it: