PHP's manual also didn't throw away the result of the [man]explode[/man] function, but put it into a variable instead. $host is still the string you started with, and you're echoing out characters 0..3 of that: 'o', 'n', 'e', and '.'.
The parse_url() call isn't having any effect either, for the same reason.