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. <?php
  2.  
  3. $one = [
  4.     1 => 'gost',
  5.     2 => 'marka',
  6.     3 => 'shirina'
  7. ];
  8.  
  9. $two = [
  10.     'marka',
  11.     'gost'
  12. ];
  13.  
  14. $count = 0;
  15. foreach($two as $t) {
  16.     
  17.     foreach($one as $o) {
  18.         
  19.         if($t == $o) {
  20.             
  21.         }
  22.         
  23.     }
  24.     
  25.     
  26. }
File Description
  • test
  • PHP Code
  • 19 Dec-2022
  • 257 Bytes
You can Share it: