if you view the source, you WILL see plain html, because it is a server-side language. The browser sees plain html.
try this-
<html>
<body>
<?php
$txt="This is a test";
echo $txt;
?>
</body>
</html>
If you see only "This is a test", than it is working.