3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo print_r(parse_url('//site/path/to/file.css?query'));
based on mhsO7
Output for 5.4.7 - 7.2.0
Array ( [host] => site [path] => /path/to/file.css [query] => query ) 1
Output for 5.3.19 - 5.4.6
Array ( [path] => //site/path/to/file.css [query] => query ) 1