You could always just get out of PHP and do it the ol' fashion way:
<?php
// functions, code, etc
?>
<pre>
(stuff goes here)
</pre>
<?php
// more functions, stuff
?>
If you use style sheets you can change the way the stuff inside the <pre> tag looks as well.