3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $to_send = array('cep' => '123'); $to_send['produtos'][] = array( 'idgrade' => "321", 'qtd' => "2", ); print_r(http_build_query($to_send));
Output for 5.1.3 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
cep=123&produtos%5B0%5D%5Bidgrade%5D=321&produtos%5B0%5D%5Bqtd%5D=2
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.1.2
cep=123&produtos[0][idgrade]=321&produtos[0][qtd]=2
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: http_build_query() in /in/8m1aK 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/8m1aK 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/8m1aK on line 7