3v4l.org

run code in 300+ PHP versions simultaneously
<?php $broken_uri = 'domain.com/?campaignid=%campaignid%&adid=%bannerid%'; $hopefully_fixed_uri = str_replace('%', '%25', $broken_uri); var_dump(parse_url($hopefully_fixed_uri));
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.29, 8.0.0 - 8.0.19, 8.1.0 - 8.1.6
array(2) { ["path"]=> string(11) "domain.com/" ["query"]=> string(47) "campaignid=%25campaignid%25&adid=%25bannerid%25" }

preferences:
48.15 ms | 409 KiB | 5 Q