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

  1. <?php
  3. function get_random_list_value() {
  4.         $value_list = ['interview', 'speech', 'social'];
  5.         $randval = array_rand($value_list, 1);
  6.         return $randval;
  7. };
  9. get_random_list_value();
File Description
  • fv
  • PHP Code
  • 13 Jul-2021
  • 178 Bytes
You can Share it: