Big 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.
It has exaclty same features as templating small overload benchmark, by multiplying everything by 10 (10x more blocks, macros etc).

Call GET
Template ~ 93,700 lines, ~ 5.5 Mo Example
Use a layout Yes Example
Blocks 500 (create and fill) Example
Custom functions 1,000 create and call) Example
Macros 1,000 create and call) Example
Escape strings for HTML 5,000 (escape and echo) Example
Escape strings for Javascript 5,000 (escape and assign) Example
Variables assignation 1,000 Example
Echo raw strings 1,000 Example
Echo unknowns variables 1,000 Example
Echo object methods call 5,000 Example
Templates inclusions 500 Example
Response ~ 91,200 lines, ~ 5.3 Mo Example

PHP

#1 PHP 7.3 timer 65.2 ms
40,000
#2 PHP 7.2 timer 68.7 ms
36,983
#3 PHP 7.1 timer 80.1 ms
32,439
#4 PHP 7.0 timer 80.5 ms
32,328
#5 PHP 5.6 timer 128.5 ms
22,677