3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface RequestInterface {} interface ResponseInterface {} class Request implements RequestInterface {} class Response implements ResponseInterface {} interface DelegateInterface { /** * Dispatch the next available middleware and return the response. * * @param RequestInterface $request * * @return ResponseInterface */ public function process(RequestInterface $request); } class Delegate implements DelegateInterface { public function process(RequestInterface $request): ResponseInterface { return new Response(); } } $delegate = new Delegate(); var_dump($delegate->process(new Request()));

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.0030.00618.34
8.3.120.0000.01618.85
8.3.110.0090.00016.79
8.3.100.0060.00316.56
8.3.90.0080.00018.43
8.3.80.0090.00018.18
8.3.70.0100.01016.50
8.3.60.0130.00318.55
8.3.50.0160.00821.14
8.3.40.0080.00818.67
8.3.30.0090.00618.43
8.3.20.0000.00719.16
8.3.10.0040.00421.74
8.3.00.0040.00418.91
8.2.250.0140.00718.27
8.2.240.0130.00618.38
8.2.230.0090.00320.94
8.2.220.0080.00024.06
8.2.210.0050.00326.77
8.2.200.0060.00316.75
8.2.190.0130.00916.58
8.2.180.0140.00716.36
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0060.00319.66
8.2.120.0040.00426.35
8.2.110.0090.00021.09
8.2.100.0070.00317.72
8.2.90.0060.00319.28
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00818.05
8.2.50.0040.00418.10
8.2.40.0000.00720.42
8.2.30.0030.00619.13
8.2.20.0000.00718.12
8.2.10.0050.00218.07
8.2.00.0000.00717.66
8.1.300.0080.00818.16
8.1.290.0090.00318.88
8.1.280.0110.00725.92
8.1.270.0040.00423.83
8.1.260.0090.00028.09
8.1.250.0080.00028.09
8.1.240.0040.00419.13
8.1.230.0070.00421.03
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0090.00018.84
8.1.160.0070.00018.93
8.1.150.0040.00420.18
8.1.140.0040.00419.50
8.1.130.0030.00317.82
8.1.120.0000.00717.54
8.1.110.0040.00417.43
8.1.100.0000.00717.49
8.1.90.0040.00417.50
8.1.80.0080.00017.44
8.1.70.0040.00417.40
8.1.60.0030.00617.59
8.1.50.0040.00417.47
8.1.40.0030.00517.50
8.1.30.0030.00617.55
8.1.20.0060.00317.65
8.1.10.0060.00317.45
8.1.00.0030.00617.34
8.0.300.0090.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0000.00817.17
8.0.260.0030.00317.30
8.0.250.0040.00416.95
8.0.240.0030.00317.04
8.0.230.0060.00316.99
8.0.220.0070.00016.96
8.0.210.0000.00716.94
8.0.200.0000.00717.00
8.0.190.0040.00417.08
8.0.180.0040.00416.98
8.0.170.0000.00717.03
8.0.160.0000.00816.96
8.0.150.0000.00716.93
8.0.140.0070.00016.88
8.0.130.0050.00013.34
8.0.120.0050.00316.92
8.0.110.0040.00416.73
8.0.100.0000.00716.98
8.0.90.0030.00316.92
8.0.80.0090.00916.95
8.0.70.0000.00816.90
8.0.60.0050.00316.79
8.0.50.0040.00416.75
8.0.30.0070.01017.06
8.0.20.0170.00417.40
8.0.10.0030.00617.08
8.0.00.0090.00916.76
7.4.330.0000.00515.55
7.4.320.0000.00616.37
7.4.300.0000.00716.59
7.4.290.0000.00716.49
7.4.280.0070.00416.51
7.4.270.0000.00616.52
7.4.260.0000.00816.60
7.4.250.0040.00416.61
7.4.240.0000.00716.60
7.4.230.0040.00416.32
7.4.220.0070.01116.51
7.4.210.0000.01516.59
7.4.200.0000.00716.62
7.4.160.0080.01016.47
7.4.150.0140.00417.40
7.4.140.0130.00617.86
7.4.130.0110.00916.67
7.4.120.0080.00916.54
7.4.110.0040.01316.52
7.4.100.0130.00316.52
7.4.90.0110.00616.66
7.4.80.0000.01719.39
7.4.70.0090.00716.51
7.4.60.0030.01316.60
7.4.50.0000.01116.32
7.4.40.0060.01016.76
7.4.30.0150.00616.61
7.4.00.0070.01015.13
7.3.330.0000.00613.23
7.3.320.0030.00313.23
7.3.310.0070.00016.13
7.3.300.0000.00816.27
7.3.290.0050.01116.18
7.3.280.0090.00916.22
7.3.270.0120.00617.40
7.3.260.0130.00716.39
7.3.250.0130.00516.31
7.3.240.0100.00716.52
7.3.230.0120.00616.39
7.3.210.0100.01016.48
7.3.200.0170.00516.25
7.3.190.0090.00816.23
7.3.180.0030.01316.27
7.3.170.0160.00616.30
7.3.160.0100.00716.38
7.3.120.0050.01314.70
7.3.110.0120.00614.81
7.3.100.0050.01214.81
7.3.90.0050.00714.72
7.3.80.0080.00714.49
7.3.70.0070.00814.82
7.3.60.0040.00914.74
7.3.50.0030.00914.66
7.3.40.0030.00814.63
7.3.30.0080.00314.68
7.3.20.0020.01216.57
7.3.10.0050.00816.48
7.3.00.0040.00916.52
7.2.330.0140.00316.39
7.2.320.0090.00916.82
7.2.310.0040.01216.68
7.2.300.0110.00616.63
7.2.290.0160.00016.68
7.2.250.0050.01414.83
7.2.240.0110.00815.01
7.2.230.0030.00915.16
7.2.220.0080.00715.06
7.2.210.0090.00715.00
7.2.200.0040.00914.94
7.2.190.0030.01114.87
7.2.180.0040.01015.16
7.2.170.0020.00915.05
7.2.60.0080.00816.59
7.2.00.0180.01119.14
7.1.330.0040.01115.61
7.1.320.0060.00615.87
7.1.310.0060.00815.83
7.1.300.0070.00615.75
7.1.290.0070.00715.44
7.1.280.0040.01015.75
7.1.270.0030.00915.73
7.1.260.0050.01015.57
7.1.200.0100.00315.66
7.1.100.0130.00617.98
7.1.70.0030.00517.22
7.1.60.0030.01317.19
7.1.50.0070.00716.87
7.1.00.0530.07320.55
7.0.200.0000.01116.75
7.0.130.0530.07720.38
7.0.120.0600.07320.36
7.0.110.0400.05720.28
7.0.100.0330.06720.39
7.0.90.0570.07020.18
7.0.80.0430.05720.39
7.0.70.0400.05320.32
7.0.60.0570.07020.31
7.0.50.0430.07020.21
7.0.40.0430.08720.23
7.0.30.0570.07720.15
7.0.20.0430.09020.34
7.0.10.0470.08720.18
7.0.00.0430.08320.16
5.6.280.0100.08020.79
5.6.270.0100.08321.09
5.6.260.0200.07020.79
5.6.250.0130.08021.11
5.6.240.0130.06020.83
5.6.230.0070.07320.85
5.6.220.0070.07320.88
5.6.210.0170.06021.10
5.6.200.0200.06021.09
5.6.190.0100.07321.04
5.6.180.0130.08320.88
5.6.170.0300.06720.86
5.6.160.0200.06321.00
5.6.150.0130.06721.03
5.6.140.0230.06720.74
5.6.130.0170.06720.82
5.6.120.0170.08020.92
5.6.110.0130.06720.73
5.6.100.0070.09320.72
5.6.90.0130.08320.80
5.6.80.0330.05020.46
5.6.70.0130.05320.26
5.6.60.0130.08020.15
5.6.50.0170.04720.13
5.6.40.0130.05320.39
5.6.30.0170.04720.41
5.6.20.0030.06720.41
5.6.10.0200.06320.36
5.6.00.0030.06720.20

preferences:
31.47 ms | 403 KiB | 5 Q