In terms of performance , what would be better. Using PHP to echo all the HTML output so I can pepper it with the various bits of working code and variables or escape HTML t
You should seriously consider never placing PHP inside of HTML. You are mixing logic with view which makes a project messy.
As others have said, if you output into html, use
If you have to output a ton of information look into output buffering.