3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $nested = array( 'key1' => array( 'subkey1' => 'subval1', 'subkey2' => 'subval2' ), 'key2' => array( 'subkey1' => 'subval1', 'subkey2' => 'subval2' ), ); echo http_build_query($nested);
Output for 5.1.3 - 7.1.0
key1%5Bsubkey1%5D=subval1&key1%5Bsubkey2%5D=subval2&key2%5Bsubkey1%5D=subval1&key2%5Bsubkey2%5D=subval2
Output for 5.0.0 - 5.1.2
key1[subkey1]=subval1&key1[subkey2]=subval2&key2[subkey1]=subval1&key2[subkey2]=subval2
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: http_build_query() in /in/7GbJS on line 15
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: http_build_query() in /in/7GbJS on line 15
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: http_build_query() in /in/7GbJS on line 15