Recently a colleague of mine found a PHP C extension Blitz used for templating.
Syntax looks a bit odd compared to Smarty but all in all super fast and a little crazy. I’ve also found a few template engine benchmarks to compare. Though benchmarks are still benchmarks and they sometimes tend to lie.
Over the years Smarty has became the standard PHP templating engine. It’s a bit rusty. But it’s clear syntax, plugin based system, template compilation is quite good for most cases.
I’ve also heard good things about DWOO. For it’s similarity to Smarty and OOP based approach.
6 Comments for Fastest PHP template engine

aB | May 25, 2009 at 9:50 PM

ProdigyIsBack | January 3, 2011 at 2:57 PM
Here a speed test of many php template engines, also downloadable:
http://www.raintpl.com/PHP-Template-Engines-Speed-Test/

Ted | February 19, 2011 at 7:01 PM
I found an interesting benchmark with charts here:
http://www.phpcomparison.net/
CD | May 7, 2011 at 12:50 PM
@AB, I totally agree with you, the features you’ve to look at when you choose a template engine are:
- functionality
- simplicity
- security
- performance (speed and memory used)
I chose Rain for website and web app
Smarty for control panel, in general for back-end
Marc Weber | October 19, 2011 at 2:21 PM
There are also templates engines really making your life easier such as HAML. A list of implementations can be found here: http://haml-to-php.com/en_EN/related%20work.html
Andrew Keithley | April 27, 2012 at 6:37 PM
What about this PHP template engine: http:// /p/mtemplate/
Anyone tried it?
I’d rather use most reliable and useful template engine
Tempaltes are rarely the bottleneck, and even when they are, you can use caching.