3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "a=10&b[]=20&c=30&d=40+50"; $stuff = array(); parse_str($string, $stuff); var_dump($stuff);
based on 9vvnE
Output for 4.3.0 - 7.1.7
array(4) { ["a"]=> string(2) "10" ["b"]=> array(1) { [0]=> string(2) "20" } ["c"]=> string(2) "30" ["d"]=> string(5) "40 50" }