This question already has answers here:
Answer
Solution:
PHP (in this context) is a server-side programming language.
You tagged this xampp but you aren't using it. Your URL (in the screenshot) starts with file://
.
You need to load the HTML document by accessing it through your web server (by typing http://etc
in the address bar and not by double clicking the HTML file in Windows Explorer.
Source