3v4l.org

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