PHP files are nothing but text so that they can be opened any application which can open text files.
Hence, you can open php files with Windows 10 supplied Notepad or Wordpad. Third party editors such as Notepad++ are generally used to code with these kind of files.
You can start Notepad or Wordpad > File > Open > Select the php file and open.