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); $ss_url_args = $ss_url_args['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/GKsmQ on line 12 Array Warning: Array to string conversion in /in/GKsmQ on line 12 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:
56.5 ms | 401 KiB | 8 Q