3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a =parse_url('http://clipr.in/output/product.php?id=24787'); var_dump($a); $a['query']="a=b"; $b = http_build_url($a); echo $b; ?>
Output for 7.0.0 - 7.1.0
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(8) "clipr.in" ["path"]=> string(19) "/output/product.php" ["query"]=> string(8) "id=24787" } Fatal error: Uncaught Error: Call to undefined function http_build_url() in /in/VD2n3:5 Stack trace: #0 {main} thrown in /in/VD2n3 on line 5
Process exited with code 255.
Output for 5.0.0 - 5.6.28
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(8) "clipr.in" ["path"]=> string(19) "/output/product.php" ["query"]=> string(8) "id=24787" } Fatal error: Call to undefined function http_build_url() in /in/VD2n3 on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(8) "clipr.in" ["path"]=> string(19) "/output/product.php" ["query"]=> string(8) "id=24787" } Fatal error: Call to undefined function: http_build_url() in /in/VD2n3 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(8) "clipr.in" ["path"]=> string(19) "/output/product.php" ["query"]=> string(8) "id=24787" } Fatal error: Call to undefined function: http_build_url() in /in/VD2n3 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(8) "clipr.in" ["path"]=> string(19) "/output/product.php" ["query"]=> string(8) "id=24787" } Fatal error: Call to undefined function: http_build_url() in /in/VD2n3 on line 5