I have installed xampp (version: 8.2.12 / PHP 8.2.12) and created a folder “demo” inside “htdocs” and “index.php” inside the demo folder. I tried to run the echo code (other html tags are excluded):
<body>
<?php
echo "Hello World!";
?>
</body>
but when I open it in browser then code is not executed instead this shows up when I inspect:
<body>
<!--?php
echo "Hello World";
?-->
</body>
Please help me to solve the problem.