PHP is processed on the server side, not the browser side. This
means that any browser (including Safari), never actually opens a
PHP file (unless it's loaded locally rather than served from the
web, in which case it would be read as a plain text file). Instead,
it receives the output from the server that contains the PHP
file.
For example, if you have a PHP file that reads like this:
<?php echo "<html>\n<body>\nI am the lizard
queen!\n</body>\n</html>"; ?>
Safari would actually see it as plain HTML, like this:
<html>
<body>
I am the lizard queen!
</body>
</html>
It would never actually see the PHP code itself.