3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $inputArray = array( "id" => "foo", "name" => "bar", "money[0][amount]" => 30, "money[0][countryCode]" => "US", "money[1][amount]" => 25, "money[1][countryCode]" => "CA", ); $url = http_build_query($inputArray); parse_str($url, $output); print_r($output);
based on G89HY
Output for 5.6.38 - 7.2.12
Array ( [id] => foo [name] => bar [money] => Array ( [0] => Array ( [amount] => 30 [countryCode] => US ) [1] => Array ( [amount] => 25 [countryCode] => CA ) ) )