3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(4) { ["a"]=> string(2) "10" ["b"]=> array(1) { [0]=> string(2) "20" } ["c"]=> string(2) "30" ["d"]=> string(5) "40 50" }
Output for hhvm-3.10.0

Process exited with code 153.