3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a =parse_url('output/product.php?id=24787'); var_dump($a); $a['query']="a=b"; $b = http_build_url($a); echo $b; ?>
based on VD2n3
Output for 7.0.0 - 7.2.0
array(2) { ["path"]=> string(18) "output/product.php" ["query"]=> string(8) "id=24787" } Fatal error: Uncaught Error: Call to undefined function http_build_url() in /in/Tg3LI:5 Stack trace: #0 {main} thrown in /in/Tg3LI on line 5
Process exited with code 255.
Output for 5.3.20 - 5.6.28
array(2) { ["path"]=> string(18) "output/product.php" ["query"]=> string(8) "id=24787" } Fatal error: Call to undefined function http_build_url() in /in/Tg3LI on line 5
Process exited with code 255.