3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php parse_str('foo[]=bar&foo[]=baz&abc=123', $out); mb_parse_str('foo[]=bar&foo[]=baz&abc=123', $outmb); var_dump($out, $outmb);
based on hEGWg
Output for 5.4.0 - 5.6.30, 7.0.0 - 7.2.0
array(2) { ["foo"]=> array(2) { [0]=> string(3) "bar" [1]=> string(3) "baz" } ["abc"]=> string(3) "123" } array(2) { ["foo"]=> array(2) { [0]=> string(3) "bar" [1]=> string(3) "baz" } ["abc"]=> string(3) "123" }
Output for hhvm-3.10.1 - 3.17.3
array(2) { ["foo"]=> array(2) { [0]=> string(3) "bar" [1]=> string(3) "baz" } ["abc"]=> string(3) "123" } array(2) { ["foo[]"]=> string(3) "baz" ["abc"]=> string(3) "123" }