php is a server-side technology. Your browser does not do anything with php. php renders the page at the server, and your browser downloads the output that php generates.
The only way to avoid seeing ".php" in your browser's address bar is to not use websites that are based on php.
Keep in mind that many documents ending in ".html" were in fact also generated by php.