3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "/bb.html?modelname=Aandeelhoudersbesluit&username=nav&password=nav"; $query = array(); list($path,$query_string) = explode("?", $string, 2); parse_str($query_string, $query); var_dump($string, $path, $query);
based on JRgec
Output for 4.3.0 - 7.1.0
string(66) "/bb.html?modelname=Aandeelhoudersbesluit&username=nav&password=nav" string(8) "/bb.html" array(3) { ["modelname"]=> string(21) "Aandeelhoudersbesluit" ["username"]=> string(3) "nav" ["password"]=> string(3) "nav" }