3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = array('model' => array('foo bar' => 'herp derp')); var_dump(http_build_query($data, null, null, PHP_QUERY_RFC1738)); var_dump(http_build_query($data, null, null, PHP_QUERY_RFC3986));
Output for 5.5.0 - 7.3.0beta1
string(28) "model%5Bfoo+bar%5D=herp+derp" string(32) "model%5Bfoo%20bar%5D=herp%20derp"