3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(parse_url('//test?query_string_must_starh_here/this_is_qs_too!'));
Output for 5.6.28, 7.0.14 - 7.1.0
Array ( [host] => test [query] => query_string_must_starh_here/this_is_qs_too! )
Output for 5.4.7 - 5.6.26, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.0.11
Array ( [host] => test?query_string_must_starh_here [path] => /this_is_qs_too! )
Output for 4.3.0 - 5.4.6
Array ( [path] => //test [query] => query_string_must_starh_here/this_is_qs_too! )