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 ))
Output for 5.4.0 - 5.4.26, 5.5.0 - 5.5.10
Parse error: syntax error, unexpected end of file in /in/e9gFt on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/e9gFt on line 11
Process exited with code 255.

preferences:
188.96 ms | 1395 KiB | 74 Q