3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'https://example.com/t/c/?cid=4924&sub1=342&asdjjn=2333'; $parts = parse_url($url); $newUrl = 'https://example.com/t/t?ex=823948923849'; printf('%s&%s', $newUrl, $parts['query']);
based on Ijckv
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
https://example.com/t/t?ex=823948923849&cid=4924&sub1=342&asdjjn=2333