3v4l.org

run code in 200+ 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 - 5.6.38, 7.0.13 - 7.2.11
Array ( [host] => test [query] => query_string_must_starh_here/this_is_qs_too! )
Output for 5.4.7 - 5.6.27, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.0.12
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! )