3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(http_build_query(array( ))); var_dump(http_build_query(array("foo;bar" => "lorem&ipsum")));
Output for 5.2.1 - 7.2.0
string(0) "" string(23) "foo%3Bbar=lorem%26ipsum"
Output for 5.0.0 - 5.2.0
NULL string(23) "foo%3Bbar=lorem%26ipsum"
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: http_build_query() in /in/uJ2PO on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: http_build_query() in /in/uJ2PO on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: http_build_query() in /in/uJ2PO on line 2