3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://username:password@hostname/path?arg=value&key=value2#anchor'; $ss_url_args = parse_url($url, PHP_URL_QUERY); echo $ss_url_args; $pieces = explode("&", $ss_url_args); for($i = 0; $i < count($pieces); $i++) { $args = explode("=", $pieces[$i]); echo($args); if($args[0] === 'key') { $key = $args[1]; } } echo $key;
Output for git.master, git.master_jit, rfc.property-hooks
arg=value&key=value2 Warning: Array to string conversion in /in/d9N4L on line 11 Array Warning: Array to string conversion in /in/d9N4L on line 11 Arrayvalue2

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:
37.42 ms | 401 KiB | 8 Q