3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (PHP_VERSION_ID < 50400) { die(); } $cases = array( '', ':', '//', '?', '#', 'http', 'http:', 'http://', 'http://hostname', '//hostname', 'http://user:pass@hostname:1234/path/file.ext?foo=bar#id', ); foreach ($cases as $case) { print_r(parse_url($case)); }

preferences:
57.09 ms | 402 KiB | 5 Q