3v4l.org

run code in 200+ 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($src); parse_str( urldecode( $src['query'] ) ); echo $url;
based on C43GH
Output for 7.2.0
Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in /in/Djf7Y on line 5 http://www.my2.com/api.php?key1=xxx
Output for 4.3.0 - 7.1.10
http://www.my2.com/api.php?key1=xxx