3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $queryString = '/post.php?foo=5&bar=&baz=2&bee=&fee=&feo=8'; parse_str($queryString, $args); var_dump($args, parse_url($queryString));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(6) { ["/post_php?foo"]=> string(1) "5" ["bar"]=> string(0) "" ["baz"]=> string(1) "2" ["bee"]=> string(0) "" ["fee"]=> string(0) "" ["feo"]=> string(1) "8" } array(2) { ["path"]=> string(9) "/post.php" ["query"]=> string(32) "foo=5&bar=&baz=2&bee=&fee=&feo=8" }