3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $src = 'http://www.my.com/api.php?url=http%3A%2F%2Fwww.my2.com%2Fapi.php%3Fkey1%3Dxxx%26key2%3Dyyy%26key3%3Dzzz'; $src = parse_url( urldecode($src) ); echo $src['query']; parse_str($src['query']); echo $url;
based on C43GH
Output for 4.3.0 - 7.1.0
url=http://www.my2.com/api.php?key1=xxx&key2=yyy&key3=zzzhttp://www.my2.com/api.php?key1=xxx