3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a =parse_url('http://clipr.in/output/product.php?id=24787'); var_dump($a); $a['query']=http_build_query($a['query']); $parsedurl = $a; echo $parsedurl['scheme']."://".$parsedurl['host']."".$parsedurl['path']."?".$parsedurl['query']; ?>
Output for git.master, git.master_jit, rfc.property-hooks
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 TypeError: http_build_query(): Argument #1 ($data) must be of type array, string given in /in/CMhtr:4 Stack trace: #0 /in/CMhtr(4): http_build_query('id=24787') #1 {main} thrown in /in/CMhtr on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.24 ms | 402 KiB | 8 Q