3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = "http://localhost/satdb/src/?v=organisations&q=foo&s=p&o=a&p=2"; //var_dump(explode("?", $url)); $parsed_url = parse_url($url); $query = array(); parse_str($parsed_url["query"], $query); var_dump($query); ?>
Output for 4.3.0 - 7.1.0
array(5) { ["v"]=> string(13) "organisations" ["q"]=> string(3) "foo" ["s"]=> string(1) "p" ["o"]=> string(1) "a" ["p"]=> string(1) "2" }