3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! $url = 'http://s.click.taobao.com/t_js?tu=http%3A%2F%2Fs.click.taobao.com%2Ft%3Fe%3DzGU34CA7K%252BPkqB07S4%252FK0CITy7klxxrJ35Nnc0vWaHl37H18cjdMO0RFhunziOFb%252FYR38ThEJAQs2K2vhBq7dgXLmU%252BSx8tU3PLk9d5Pc2Up%26ref%3D%26et%3DjFBDPciHyuvffw%253D%253D'; //$url = urldecode($url); $uri = parse_url($url,PHP_URL_QUERY); parse_str($uri,$args); print_r(urldecode($args['tu']));
Output for 5.1.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
http://s.click.taobao.com/t?e=zGU34CA7K+PkqB07S4/K0CITy7klxxrJ35Nnc0vWaHl37H18cjdMO0RFhunziOFb/YR38ThEJAQs2K2vhBq7dgXLmU+Sx8tU3PLk9d5Pc2Up&ref=&et=jFBDPciHyuvffw==
Output for 4.3.0 - 5.1.1
Notice: Use of undefined constant PHP_URL_QUERY - assumed 'PHP_URL_QUERY' in /in/9p6CV on line 5 Warning: parse_url() expects exactly 1 parameter, 2 given in /in/9p6CV on line 5 Notice: Undefined index: tu in /in/9p6CV on line 7