PHP 14.02 - 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 PHP 14.02.php

  1. <?php
  2. echo rand (1,6);
  3. $test=array(0,0,0,0,0,0,0);
  4. var_dump($test);
  5. for($i=1;$i<10000;$i++){
  6.     $de=rand(1,6);
  7.     $test[$de]++; //$test[$de]=$test[$de]+1
  8. }
  9. var_dump($test);
File Description
  • PHP 14.02
  • PHP Code
  • 14 Feb-2024
  • 174 Bytes
You can Share it: