3v4l.org

run code in 300+ PHP versions simultaneously
<?php class URL { /** * Wrapper for parse_url() * * @param string $string * @return URL * @throws InvalidArgumentException */ public static function createFromString($string) {} /** * Resolve $target as a relative URL against $source, using the same rules as a browser, so for example * * $source = http://google.com/ $target = /foo result = http://google.com/foo * $source = http://google.com/foo $target = bar result = http://google.com/bar * $source = http://google.com/foo $target = http://google.com/baz result = http://google.com/baz * * @param string|URL $source * @param string|URL $target * @return URL */ public static function resolve($source, $target) {} /** * Constructor takes components as individual arguments * * @param string $scheme * @param string $user * @param string $pass * @param string $host * @param int $port * @param string $path * @param string|array $query * @param string $fragment */ public function __construct($scheme = null, $user = null, $pass = null, $host = null, $port = null, $path = null, $query = null, $fragment = null) {} /** * Forms all non-null components into a URL * * @return string */ public function __toString() {} // +setters/getters for all components (or public properties, I'd prefer methods though) }
Output for git.master, git.master_jit, rfc.property-hooks

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.19 ms | 401 KiB | 8 Q