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.         //Enter your code here, enjoy!
  3.  
  4. $array = array("1" => "PHP code tester Sandbox Online",  
  5.               "foo" => "bar", 5 , 5 => 89009, 
  6.               "case" => "Random Stuff: " . rand(100,999),
  7.               "PHP Version" => phpversion()
  8.               );
  9.               
  10. foreach( $array as $key => $value ){
  11.     echo $key."\t=>\t".$value."\n";
  12. }
  13.  
  14.  
File Description
  • test
  • PHP Code
  • 17 Aug-2019
  • 361 Bytes
You can Share it: