3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $src = 'http://www.my.com/api.php?url='.'http%253A//www.my.com/api.php%253Fkey1%253Dxxx%2526key2%253Dxxx"'; $src = parse_url( urldecode($src) ); parse_str($src['query']); echo $url;
based on suaOc
Output for 5.4.0 - 7.1.0
http://www.my.com/api.php?key1=xxx&key2=xxx"
Output for 4.3.0 - 5.1.6, 5.2.1 - 5.3.29
http://www.my.com/api.php?key1=xxx&key2=xxx\"
Output for 5.2.0
http://www.my.com/api.php?key1=xxx&key2=xxx\\\"