3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(http_build_url("http://user@www.example.com/pub/index.php?x=b#files", array( "scheme" => "ftp", "host" => "ftp.example.com", "path" => "files/current/", "query" => "a=c" ), HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_PATH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT ));

preferences:
40.39 ms | 402 KiB | 5 Q