3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TemplatingMiddleware { public function __construct($engine) {} public function handle($request, $next) { $response = $next->process($request); $data = $response->getBody(); if($tpl = $data->template){ return new Response(..., $this->engine->render($tpl, $data)); } return $response; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.30.0130.00917.72
7.2.20.0110.01217.49
7.2.10.0150.01117.80
7.2.00.0120.01317.55
7.1.150.0140.01316.31
7.1.140.0120.01316.26
7.1.130.0090.01316.45
7.1.120.0100.01416.45
7.1.110.0120.01115.71
7.1.100.0110.01216.15
7.1.90.0100.00916.14
7.1.80.0130.01416.08
7.1.70.0110.01115.25
7.1.60.0300.02033.16
7.1.50.0380.01532.82
7.1.40.0290.02032.41
7.1.30.0370.01132.39
7.1.20.0280.01432.59
7.1.10.0110.01314.37
7.1.00.0120.01114.33

preferences:
156.25 ms | 1394 KiB | 7 Q