Quindi ti stampa il codice PHP, sostanzialmente.
Il tag di apertura è <?php oppure hai usato lo short open tag?