3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('key1' => 'value1', 'key2' => 'value2'); echo http_build_query($arr, '', ' '); echo url_encode(http_build_query($arr, '', ' '));
Output for 7.0.0 - 7.1.0
key1=value1 key2=value2 Fatal error: Uncaught Error: Call to undefined function url_encode() in /in/blZ3R:7 Stack trace: #0 {main} thrown in /in/blZ3R on line 7
Process exited with code 255.
Output for 5.1.2 - 5.6.28, hhvm-3.10.0 - 3.12.0
key1=value1 key2=value2 Fatal error: Call to undefined function url_encode() in /in/blZ3R on line 7
Process exited with code 255.
Output for 5.0.0 - 5.1.1
Warning: http_build_query() expects at most 2 parameters, 3 given in /in/blZ3R on line 5 Fatal error: Call to undefined function url_encode() in /in/blZ3R on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: http_build_query() in /in/blZ3R on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: http_build_query() in /in/blZ3R on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: http_build_query() in /in/blZ3R on line 5