How do I add PHP to full nodes?
You would use the PHP Filter, but I would highly recommend AGAINST it as it doesn't restrict anything, and with it, your users could enter things far more "exciting" than just echo statements...