Quoting from the docs:
Note:
In PHP 5.2 and earlier, the parser does not allow the
<?php
opening tag to be the only thing in a file. This is allowed as of PHP 5.3 provided there are one or more whitespace characters after the opening tag.
my emphasis