To display PHP on your computer you need to have a local PHP server set up. Without it there is no PHP engine that can interpret and parse your code to make it in to HTML for the browser.
If you haven't got a PHP server installed locally, then you will need to upload your files to a server via FTP, where PHP is installed.