PHP files conventionally end with .php.
The Web server decides what to do with a file by looking at the MIME-type, which is mplied by the extension to the filename.
If you make your filename end with .html or .htm, the server is not going to process any PHP code in that file (unless you reconfigure the server).