3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'www.pharmacys.com.ec'; var_dump(parse_url($url)); /*if (!filter_var($url, FILTER_VALIDATE_URL) === false) { echo("$url is a valid URL"); } else { echo("$url is not a valid URL"); }*/ ?>
based on ukYKB
Output for 5.3.18 - 7.3.1
array(1) { ["path"]=> string(20) "www.pharmacys.com.ec" }