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

  1. public class test {
  2.     public static void nain(String[] args) {
  3.         char[] arr = {'e','l','s','g','o','i','v','w','k','p'};
  4.         int[] index = {7,5,9,8}
  5.  
  6.     string word = "";
  7.     for (int i =0;< 4;i++){
  8.         word+= arr[index[i]];
  9.     }
  10.     System.out.printlm(word);
  11. }
  12. }
  13.  
File Description
  • test
  • PHP Code
  • 20 May-2022
  • 284 Bytes
You can Share it: