3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface MiddlewareInterface { /** * Process a request and return a response. * * Takes the incoming request and optionally modifies it before delegating * to the next handler to get a response. May modify the response before * ultimately returning it. * * @param RequestInterface $request * @param ResponseInterface $response * @param callable $next * * @return ResponseInterface */ public function __invoke( RequestInterface $request, ResponseInterface $response, callable $next ); } interface ServerMiddlewareInterface extends MiddlewareInterface { /** * Process a request and return a response. * * Takes the incoming request and optionally modifies it before delegating * to the next handler to get a response. May modify the response before * ultimately returning it. * * @param RequestInterface $request * @param ResponseInterface $response * @param callable $next * * @return ResponseInterface */ public function __invoke( ServerRequestInterface $request, ResponseInterface $response, callable $next ); } class AcmeMiddleware implements ServerMiddlewareInterface { public function __invoke( ServerRequestInterface $request, ResponseInterface $response, callable $next ) { 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)
8.3.60.0030.01416.88
8.3.50.0110.00417.98
8.3.40.0120.00318.56
8.3.30.0140.00018.66
8.3.20.0040.00419.16
8.3.10.0070.00021.94
8.3.00.0040.00420.77
8.2.180.0140.00716.50
8.2.170.0110.00422.96
8.2.160.0030.01022.25
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00717.91
8.2.120.0090.00026.35
8.2.110.0090.00020.52
8.2.100.0110.00017.64
8.2.90.0030.00519.09
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0000.00818.04
8.2.50.0080.00018.10
8.2.40.0060.00320.59
8.2.30.0050.00219.21
8.2.20.0000.00817.55
8.2.10.0050.00317.94
8.2.00.0000.00818.00
8.1.270.0030.00523.98
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0080.00323.91
8.1.230.0110.00020.85
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.10
8.1.190.0080.00017.23
8.1.180.0030.00518.10
8.1.170.0050.00318.59
8.1.160.0040.00422.15
8.1.150.0000.00818.59
8.1.140.0070.00019.40
8.1.130.0040.00417.65
8.1.120.0000.00817.34
8.1.110.0040.00417.45
8.1.100.0030.00517.37
8.1.90.0030.00417.30
8.1.80.0000.00717.39
8.1.70.0040.00417.48
8.1.60.0050.00317.46
8.1.50.0050.00317.42
8.1.40.0000.00717.53
8.1.30.0080.00017.47
8.1.20.0000.00817.63
8.1.10.0000.00817.42
8.1.00.0000.00817.24
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0050.00318.45
8.0.270.0070.00017.18
8.0.260.0030.00717.19
8.0.250.0000.00717.02
8.0.240.0000.00716.94
8.0.230.0030.00316.98
8.0.220.0000.00716.88
8.0.210.0000.00716.91
8.0.200.0030.00716.88
8.0.190.0050.00216.83
8.0.180.0030.00616.90
8.0.170.0040.00416.95
8.0.160.0000.00816.98
8.0.150.0000.00716.81
8.0.140.0030.00616.82
8.0.130.0050.00013.33
8.0.120.0040.00416.86
8.0.110.0000.00816.84
8.0.100.0000.00716.93
8.0.90.0070.00016.95
8.0.80.0110.00916.85
8.0.70.0000.00716.85
8.0.60.0000.00716.78
8.0.50.0000.00716.97
8.0.30.0160.00317.14
8.0.20.0110.00917.40
8.0.10.0070.00016.90
8.0.00.0070.01016.63
7.4.330.0040.00015.08
7.4.320.0000.00616.50
7.4.300.0030.00316.54
7.4.290.0030.00316.60
7.4.280.0050.00316.45
7.4.270.0050.00316.45
7.4.260.0000.00716.41
7.4.250.0070.00016.41
7.4.240.0070.00016.36
7.4.230.0040.00416.31
7.4.220.0060.01116.63
7.4.210.0000.01416.42
7.4.200.0030.00316.58
7.4.160.0040.01116.42
7.4.150.0070.01317.40
7.4.140.0100.00917.86
7.4.130.0110.01016.45
7.4.120.0110.00916.58
7.4.110.0030.01416.32
7.4.100.0140.00716.60
7.4.90.0200.00016.57
7.4.80.0080.00819.39
7.4.70.0070.01016.45
7.4.60.0120.01216.36
7.4.50.0030.00916.50
7.4.40.0000.01816.56
7.4.30.0060.01016.47
7.4.00.0000.01715.10
7.3.330.0000.00813.18
7.3.320.0020.00213.07
7.3.310.0000.00716.11
7.3.300.0030.00316.16
7.3.290.0060.01216.22
7.3.280.0110.00716.24
7.3.270.0190.00917.40
7.3.260.0070.01116.32
7.3.250.0100.00916.47
7.3.240.0100.00716.42
7.3.230.0050.01516.39
7.3.210.0110.01416.34
7.3.200.0080.00816.33
7.3.190.0060.01016.41
7.3.180.0040.01816.23
7.3.170.0190.00316.27
7.3.160.0090.00716.32
7.3.10.0100.01316.30
7.3.00.0100.00816.09
7.2.330.0090.00916.48
7.2.320.0100.00716.66
7.2.310.0070.01016.63
7.2.300.0130.00716.32
7.2.290.0080.00816.36
7.2.130.0170.00916.47
7.2.120.0180.00616.61
7.2.110.0110.00616.12
7.2.100.0090.00616.21
7.2.90.0180.00016.67
7.2.80.0070.01116.20
7.2.70.0100.00716.59
7.2.60.0080.00716.43
7.2.50.0130.00616.19
7.2.40.0110.00416.27
7.2.30.0140.00916.61
7.2.20.0170.00016.57
7.2.10.0070.01416.14
7.2.00.0090.00718.04
7.1.250.0140.01115.38
7.1.200.0030.01015.72
7.1.100.0060.00617.94
7.1.70.0000.00716.90
7.1.60.0100.01319.16
7.1.50.0070.01816.74
7.1.00.0070.07322.54
7.0.200.0470.00914.57
7.0.60.0830.00020.00
7.0.50.0830.00020.29
7.0.40.0830.00020.22
7.0.30.0770.00020.32
7.0.20.0830.00020.25
7.0.10.0870.00020.30
7.0.00.0770.00020.21
5.6.280.0030.07320.89
5.6.210.0670.00020.75
5.6.200.0770.00021.12
5.6.190.0770.00021.19
5.6.180.0830.00021.27
5.6.170.0800.00021.05
5.6.160.0830.00021.03
5.6.150.0830.00021.05
5.6.140.0800.00021.15
5.6.130.0830.00021.02
5.6.120.0700.00021.03
5.6.110.0770.00021.18
5.6.100.0800.00021.01
5.6.90.0930.00021.10
5.6.80.0670.00020.42
5.6.70.0700.00020.50
5.6.60.0870.00020.55
5.6.50.0730.00020.42
5.6.40.0770.00020.49
5.6.30.0730.00020.49
5.6.20.0930.00020.57
5.6.10.0770.00020.43
5.6.00.0930.00020.47
5.5.350.0770.00020.33
5.5.340.0730.00020.79
5.5.330.0770.00020.88
5.5.320.0830.00021.05
5.5.310.0870.00021.02
5.5.300.0730.00020.88
5.5.290.0700.00020.80
5.5.280.0730.00020.69
5.5.270.0800.00020.95
5.5.260.0870.00020.83
5.5.250.0870.00020.77
5.5.240.0670.00020.35
5.5.230.0770.00020.39
5.5.220.0770.00020.16
5.5.210.0800.00020.42
5.5.200.0700.00020.10
5.5.190.0730.00020.30
5.5.180.1000.00020.29
5.5.160.0770.00020.04
5.5.150.0730.00020.23
5.5.140.0670.00020.18
5.5.130.0700.00020.36
5.5.120.0700.00020.31
5.5.110.0700.00020.29
5.5.100.0700.00020.27
5.5.90.0730.00020.20
5.5.80.0800.00020.09
5.5.70.0730.00020.16
5.5.60.0630.00020.09
5.5.50.0670.00020.11
5.5.40.0700.00020.05
5.5.30.0730.00020.05
5.5.20.0700.00020.18
5.5.10.0700.00020.24
5.5.00.0730.00020.08

preferences:
67.91 ms | 400 KiB | 5 Q