To output text with PHP, you must use the echo keyword as part of the opening and closing PHP construct by (to open) and ?> (to close).
<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "Hello World!";
?>
</body>
</html>