Templatized PHP execution