3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = Array( "uid" => "BOB", "attr" => "Value" ); $arr['something'] = 2; var_dump($arr); echo http_build_query($arr); echo count($arr); ?>
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { ["uid"]=> string(3) "BOB" ["attr"]=> string(5) "Value" ["something"]=> int(2) } uid=BOB&attr=Value&something=23
Output for 4.4.5 - 4.4.9
array(3) { ["uid"]=> string(3) "BOB" ["attr"]=> string(5) "Value" ["something"]=> int(2) } Fatal error: Call to undefined function: http_build_query() in /in/jnPs6 on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.4
array(3) { ["uid"]=> string(3) "BOB" ["attr"]=> string(5) "Value" ["something"]=> int(2) } Fatal error: Call to undefined function: http_build_query() in /in/jnPs6 on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array(3) { ["uid"]=> string(3) "BOB" ["attr"]=> string(5) "Value" ["something"]=> int(2) } Fatal error: Call to undefined function: http_build_query() in /in/jnPs6 on line 12