3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Variable to check $url = "https://w3schools.com"; // Validate url if (filter_var($url, FILTER_VALIDATE_URL)) { echo("$url is a valid URL"); } else { echo("$url is not a valid URL"); } ?>
based on ushs8
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0alpha1
https://w3schools.com is a valid URL