Closing PHP tags are recognised within single-line comments:
<?php
// Code will end here ?> This is output as literal text.
<?php
# Same with this method of commenting ?> This is output as literal text.
However they do not have an effect in C-style comments:
<?php
/* Code will not end here ?> as closing tags are ignored inside C-style comments. */
?>