Using .localhost URLs for local development

It may be a browser feature or something I've installed or configured, but all *.localhost URLs remove to my local machine.

That means instead of going to http://localhost:8000 for this website, I can use http://oliverdavies.localhost:8000 or any other localhost URL with the same port number.