3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! function get_url_arg( $url,$arg='' ) { $url = urldecode( $url ); $args = parse_url( $url, PHP_URL_QUERY ); parse_str( $args, $result ); if($arg) return $result[$arg]; return $result; } $url = 'http://click.union.jd.com/statistic/statisticClick.action?unionId=18550&amp;t=1&amp;to=http://item.jd.com/634519.html'; echo get_url_arg($url,'to');
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "to" in /in/QgH8V on line 8

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.68 ms | 401 KiB | 8 Q