run code in 300+ PHP versions simultaneously
<?php $brokenUri = 'https://domain.com/?abc=1212&campaignid=%campaignid%&adid=%bannerid%'; $brokenUri = parse_url($brokenUri); var_dump($brokenUri); // we need encoded input string $brokenUri['query'] = urlencode($brokenUri['query']); var_dump($brokenUri['query']); // result parse_str($brokenUri['query'], $brokenUri['query']); var_dump($brokenUri['query']);
Output for git.master, git.master_jit
array(4) { ["scheme"]=> string(5) "https" ["host"]=> string(10) "domain.com" ["path"]=> string(1) "/" ["query"]=> string(48) "abc=1212&campaignid=%campaignid%&adid=%bannerid%" } string(66) "abc%3D1212%26campaignid%3D%25campaignid%25%26adid%3D%25bannerid%25" array(1) { ["abc=1212&campaignid=%campaignid%&adid=%bannerid%"]=> string(0) "" }

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

31.4 ms | 409 KiB | 5 Q