3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use React\Promise\PromiseInterface; interface MiddlewareInterface { /** * @param RequestInterface $request * @param callable $next * @return PromiseInterface<ResponseInterface>|ResponseInterface */ public function __invoke(RequestInterface $request, callable $next); } final class BrowserMiddlewareStub implements MiddlewareInterface { /** @var ResponseInterface */ private $response; public function __construct(ResponseInterface $response) { $this->response = $response; } /** * @param RequestInterface $request * @param callable $next * @return PromiseInterface<ResponseInterface>|ResponseInterface */ public function __invoke(RequestInterface $request, callable $next) { return $this->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.130.0060.00318.41
8.3.120.0110.00720.88
8.3.110.0130.00620.94
8.3.100.0070.00424.06
8.3.90.0040.01426.77
8.3.80.0090.00017.97
8.3.70.0040.01118.18
8.3.60.0140.00016.38
8.3.50.0190.00416.58
8.3.40.0030.01021.74
8.3.30.0180.00318.59
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.250.0070.00718.46
8.2.240.0060.00316.93
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0150.00026.77
8.2.200.0040.00818.04
8.2.190.0130.00316.58
8.2.180.0110.00418.04
8.2.170.0110.01118.91
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0020.00520.96
8.2.110.0000.00922.20
8.2.100.0110.00019.39
8.2.90.0040.00417.50
8.2.80.0060.00818.20
8.2.70.0040.00417.50
8.2.60.0000.00817.50
8.2.50.0030.00517.55
8.2.40.0000.00919.07
8.2.30.0120.00417.62
8.2.20.0090.00717.62
8.2.10.0130.00417.62
8.2.00.0130.00317.62
8.1.300.0040.00418.08
8.1.290.0070.00330.84
8.1.280.0130.00325.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00623.84
8.1.230.0030.00921.00
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0110.00017.11
8.1.190.0060.00317.22
8.1.180.0030.00718.10
8.1.170.0040.00418.97
8.1.160.0100.00617.62
8.1.150.0110.00517.62
8.1.140.0090.00917.62
8.1.130.0130.00317.62
8.1.120.0050.01117.62
8.1.110.0100.00517.62
8.1.100.0120.00617.62
8.1.90.0120.00417.62
8.1.80.0090.00617.62
8.1.70.0150.00017.62
8.1.60.0120.00617.62
8.1.50.0180.00017.62
8.1.40.0130.00417.62
8.1.30.0140.00317.62
8.1.20.0090.00917.62
8.1.10.0060.01217.62
8.1.00.0060.01217.62
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0170.00017.62
8.0.270.0100.00517.62
8.0.260.0060.01117.62
8.0.250.0120.00417.62
8.0.240.0120.00417.62
8.0.230.0110.00517.62
8.0.220.0150.00317.62
8.0.210.0120.00517.62
8.0.200.0080.00817.62
8.0.190.0120.00317.62
8.0.180.0120.00417.62
8.0.170.0100.00617.62
8.0.160.0120.00717.62
8.0.150.0150.00017.62
8.0.140.0150.00017.62
8.0.130.0160.00017.62
8.0.120.0100.00517.62
8.0.110.0080.00617.62
8.0.100.0060.00917.62
8.0.90.0140.00217.62
8.0.80.0100.00517.62
8.0.70.0150.00017.62
8.0.60.0180.00017.62
8.0.50.0120.00417.62
8.0.30.0080.00817.62
8.0.20.0160.00017.62
8.0.10.0080.00817.62
5.3.290.0040.00317.62

preferences:
24.86 ms | 403 KiB | 5 Q