3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( 'order_status' => array('os1','os2'), 'order_source' => array('google') ); echo http_build_query($arr);
based on 9Gsv9
Output for 5.1.3 - 7.1.0
order_status%5B0%5D=os1&order_status%5B1%5D=os2&order_source%5B0%5D=google
Output for 5.0.0 - 5.1.2
order_status[0]=os1&order_status[1]=os2&order_source[0]=google
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: http_build_query() in /in/9EVk1 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/9EVk1 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/9EVk1 on line 7