I created a simple HTML webpage that includes the following PHP code in the HTML code.
When I run
Since you can't run PHP directly in the browser, you need to have a server and at the same time, you need to have a .php file in order to execute PHP script.