3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $to_send = array('cep' => '90550-004'); $to_send['produtos'][] = array( 'idgrade' => "2", 'qtd' => "2", ); print_r(http_build_query($to_send));
based on 8m1aK
Output for 5.1.3 - 7.1.0
cep=90550-004&produtos%5B0%5D%5Bidgrade%5D=2&produtos%5B0%5D%5Bqtd%5D=2
Output for 5.0.0 - 5.1.2
cep=90550-004&produtos[0][idgrade]=2&produtos[0][qtd]=2
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: http_build_query() in /in/8HL9C on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: http_build_query() in /in/8HL9C on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: http_build_query() in /in/8HL9C on line 7