3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://username:password@hostname:9090/path?arg=value&arg2=value#anchor'; print_r(parse_url($url)); var_dump(parse_url($url, PHP_URL_SCHEME)); var_dump(parse_url($url, PHP_URL_HOST)); var_dump(parse_url($url, PHP_URL_PORT)); var_dump(parse_url($url, PHP_URL_USER)); var_dump(parse_url($url, PHP_URL_PASS)); var_dump(parse_url($url, PHP_URL_QUERY)); var_dump(parse_url($url, PHP_URL_FRAGMENT));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [scheme] => http [host] => hostname [port] => 9090 [user] => username [pass] => password [path] => /path [query] => arg=value&arg2=value [fragment] => anchor ) string(4) "http" string(8) "hostname" int(9090) string(8) "username" string(8) "password" string(20) "arg=value&arg2=value" string(6) "anchor"

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