As far as I've already read, you cannot add php directly to a CMS page, but you can add it to a block then add that to the CMS page.
So why when adding it to a static block, would it comment out my code like so?
Is there an answer to this question? I am trying to the same, add php directly to the pages and have it render on the page. If you can't put it in a page or block, how does one go about adding custom PHP code to their site?