3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date_span = array( 'acq' => array( 'start' => array('month' => '04', 'day' => '21', 'year' => '2020'), 'end' => array('month' => '04', 'day' => '21', 'year' => '2020'), ) ); $date_span_query = http_build_query($date_span); var_dump($date_span_query);
Output for 5.1.3 - 7.2.0
string(165) "acq%5Bstart%5D%5Bmonth%5D=04&acq%5Bstart%5D%5Bday%5D=21&acq%5Bstart%5D%5Byear%5D=2020&acq%5Bend%5D%5Bmonth%5D=04&acq%5Bend%5D%5Bday%5D=21&acq%5Bend%5D%5Byear%5D=2020"
Output for 5.0.0 - 5.1.2
string(117) "acq[start][month]=04&acq[start][day]=21&acq[start][year]=2020&acq[end][month]=04&acq[end][day]=21&acq[end][year]=2020"
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: http_build_query() in /in/0A5vl on line 10
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: http_build_query() in /in/0A5vl on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: http_build_query() in /in/0A5vl on line 10