Ciao a tutti, è possibile estrapolare l'eventuale sottodominio da questa stringa?

Codice PHP:
echo $_SERVER[HTTP_HOST].$_SERVER[PHP_SELF]; 
Grazie