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

  1. <?php
  2. $url = 'https://wtools.io';
  3. $validation = filter_var($url, filter_validate_url, filter_flag_host_required);
  4. if ( $validation ) $output = "$url is a valid URL";
  5. else $output = "$url is not a valid URL";
  6. echo $output;
  7.  
File Description
  • scj
  • PHP Code
  • 07 Sep-2022
  • 222 Bytes
You can Share it: