Dalam konteks html, <?php , <something , dll, adalah pembukaan tag html. Sunting < dengan entitas htmlnya < untuk mencegah hal itu terjadi..
<?php
Lebih baik lagi, gunakan htmlspecialchars:
<?php echo htmlspecialchars('<?php echo "test"; ?>'); ?>