In PHP, cURL takes the address straight in the proxy option, with the username and password in the request URL itself, on port 20001.
SOCKS5
For SOCKS5, set the SOCKS5 proxy type and port 20481. Without the right type, PHP tries HTTP and the connection fails with a proxy error.
A local test tool may show an old result from cache; confirm with the site's proxy tester tool.