Small overload (template engine) benchmark

Purpose of this benchmark is to use a maximum of features of template engines.
Template contains duplicated code, to not use loops and represent a real template.

Call GET
Template ~ 9,600 lines, ~ 550 Ko Example
Use a layout Yes Example
Blocks 50 (create and fill) Example
Custom functions 100 (create and call) Example
Macros 100 (create and call) Example
Escape strings for HTML 500 (escape and echo) Example
Escape strings for Javascript 500 (escape and assign) Example
Variables assignation 100 Example
Echo raw strings 100 Example
Echo unknowns variables 100 Example
Echo object methods call 500 Example
Templates inclusions 50 Example
Response ~ 9,300 lines, ~ 530 Ko Example

PHP

#1 PHP 7.3 timer 4.8 ms
40,000
#2 PHP 7.2 timer 5.2 ms
36,351
#3 PHP 7.1 timer 6.6 ms
30,290
#4 PHP 7.0 timer 6.8 ms
30,086
#5 PHP 5.6 timer 13.2 ms
15,744