3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TestInterface { public function foo(); } class Test implements TestInterface { public function foo(...$extraArgs) { var_dump($extraArgs); } } $obj = new Test; $obj->foo(1, null, [1], 'a');

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.01018.29
8.3.50.0090.01121.95
8.3.40.0140.00018.67
8.3.30.0070.00718.96
8.3.20.0060.00320.22
8.3.10.0080.00020.41
8.3.00.0000.00819.56
8.2.180.0150.00616.63
8.2.170.0120.00622.96
8.2.160.0100.00320.33
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00826.16
8.2.120.0040.00422.12
8.2.110.0060.00320.32
8.2.100.0090.00318.22
8.2.90.0000.00719.05
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0000.00718.16
8.2.30.0040.00419.29
8.2.20.0050.00217.66
8.2.10.0030.00618.05
8.2.00.0000.00817.54
8.1.280.0090.00625.92
8.1.270.0000.00822.09
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00423.84
8.1.230.0060.00619.08
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0040.00718.64
8.1.160.0040.00421.96
8.1.150.0040.00418.93
8.1.140.0000.00817.37
8.1.130.0020.00517.79
8.1.120.0030.00517.43
8.1.110.0020.00517.43
8.1.100.0030.00517.46
8.1.90.0000.00717.45
8.1.80.0000.00817.34
8.1.70.0070.00017.45
8.1.60.0080.00017.64
8.1.50.0030.00517.39
8.1.40.0000.00817.51
8.1.30.0040.00417.58
8.1.20.0040.00417.49
8.1.10.0000.00817.46
8.1.00.0050.00217.26
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0030.00318.43
8.0.270.0030.00317.23
8.0.260.0000.00617.19
8.0.250.0000.00716.94
8.0.240.0030.00316.93
8.0.230.0070.00016.93
8.0.220.0080.00016.90
8.0.210.0030.00516.86
8.0.200.0050.00216.83
8.0.190.0000.00816.77
8.0.180.0040.00416.89
8.0.170.0040.00416.91
8.0.160.0070.00016.82
8.0.150.0000.00716.82
8.0.140.0040.00416.71
8.0.130.0050.00013.39
8.0.120.0060.00316.77
8.0.110.0000.00816.84
8.0.100.0040.00416.75
8.0.90.0080.00016.73
8.0.80.0060.00916.88
8.0.70.0050.00316.75
8.0.60.0040.00416.82
8.0.50.0000.00716.90
8.0.30.0140.00916.93
8.0.20.0110.01117.40
8.0.10.0050.00316.91
8.0.00.0040.01316.73
7.4.330.0020.00215.00
7.4.320.0050.00216.39
7.4.300.0030.00316.40
7.4.290.0050.00316.55
7.4.280.0090.00016.49
7.4.270.0030.00316.48
7.4.260.0070.00016.47
7.4.250.0040.00416.47
7.4.240.0030.00516.53
7.4.230.0070.00016.52
7.4.220.0100.00716.63
7.4.210.0160.00316.44
7.4.200.0040.00416.68
7.4.160.0060.01016.27
7.4.150.0090.00917.40
7.4.140.0050.01417.86
7.4.130.0070.01116.51
7.4.120.0100.00816.58
7.4.110.0030.01416.43
7.4.100.0080.00916.41
7.4.90.0150.00916.59
7.4.80.0120.00616.43
7.4.70.0000.01716.54
7.4.60.0060.01016.45
7.4.50.0040.00016.44
7.4.40.0100.00716.62
7.4.30.0000.01616.39
7.4.00.0030.01415.00
7.3.330.0050.00013.05
7.3.320.0000.00613.18
7.3.310.0040.00416.27
7.3.300.0000.00616.21
7.3.290.0120.00316.28
7.3.280.0120.00316.19
7.3.270.0040.01417.40
7.3.260.0150.00416.22
7.3.250.0080.01016.44
7.3.240.0170.00316.52
7.3.230.0090.00916.39
7.3.210.0070.01016.18
7.3.200.0150.00019.39
7.3.190.0090.00916.51
7.3.180.0120.00716.29
7.3.170.0120.00416.30
7.3.160.0000.01616.30
7.2.330.0090.00916.63
7.2.320.0050.01116.70
7.2.310.0120.00916.54
7.2.300.0090.01516.44
7.2.290.0090.00916.57
7.2.60.0060.00916.90
7.2.00.0040.00819.34
7.1.200.0100.00315.84
7.1.100.0080.00417.84
7.1.70.0080.00816.70
7.1.60.0070.01819.32
7.1.50.0100.01016.95
7.1.00.0000.07722.43
7.0.200.0050.00316.70
7.0.140.0070.07022.00
7.0.70.0100.08019.88
7.0.60.0030.05719.97
7.0.50.0030.08717.86
7.0.40.0030.09020.25
7.0.30.0470.05720.16
7.0.20.0370.08020.15
7.0.10.0300.04320.30
7.0.00.0100.06020.20
5.6.280.0030.07320.89
5.6.210.0100.07020.61
5.6.200.0130.07718.27
5.6.190.0130.06020.33
5.6.180.0000.09020.46
5.6.170.0170.05020.55
5.6.160.0300.06320.39
5.6.150.0070.08018.28
5.6.140.0100.03318.12
5.6.130.0130.07718.18
5.6.120.0070.03720.99
5.6.110.0100.05721.11
5.6.100.0100.08020.96
5.6.90.0100.04720.88
5.6.80.0070.03720.44
5.6.70.0100.07320.53
5.5.350.0100.07320.46
5.5.340.0030.04018.07
5.5.330.0100.06020.44
5.5.320.0000.09020.41
5.5.310.0330.05020.24
5.5.300.0200.04317.95
5.5.290.0070.04717.95
5.5.280.0030.04320.96
5.5.270.0130.07720.87
5.5.260.0030.09020.79
5.5.250.0100.07320.66
5.5.240.0170.06020.32
5.4.450.0100.05719.33
5.4.440.0630.07019.47
5.4.430.0470.06019.16
5.4.420.0670.06019.45
5.4.410.0930.04719.50
5.4.400.0730.05719.23
5.4.390.0700.07319.26
5.4.380.0370.07318.70
5.4.370.0400.06018.46
5.4.360.0400.05318.75
5.4.350.0200.06018.61
5.4.340.0370.06018.79
5.4.320.0060.03712.52
5.4.310.0070.03712.52
5.4.300.0060.03712.51
5.4.290.0090.04012.51
5.4.280.0070.03612.41
5.4.270.0110.03112.41
5.4.260.0070.04112.41
5.4.250.0070.03812.41
5.4.240.0080.04212.41
5.4.230.0040.03912.40
5.4.220.0070.04312.40
5.4.210.0060.03412.40
5.4.200.0050.03812.40
5.4.190.0080.03712.40
5.4.180.0040.03812.40
5.4.170.0040.03812.41
5.4.160.0050.03612.40
5.4.150.0060.03712.39
5.4.140.0050.04212.09
5.4.130.0110.03612.07
5.4.120.0070.03412.03
5.4.110.0050.04012.03
5.4.100.0120.03012.03
5.4.90.0080.04112.03
5.4.80.0080.04212.03
5.4.70.0050.03612.03
5.4.60.0040.03612.03
5.4.50.0090.03812.03
5.4.40.0100.03412.01
5.4.30.0060.03912.01
5.4.20.0060.03712.01
5.4.10.0050.03512.01
5.4.00.0120.03011.51
5.3.290.0040.04512.80
5.3.280.0080.04412.71
5.3.270.0060.04512.72
5.3.260.0030.04112.72
5.3.250.0070.03812.72
5.3.240.0080.03412.72
5.3.230.0040.03812.71
5.3.220.0070.03512.68
5.3.210.0050.04012.68
5.3.200.0080.03412.68
5.3.190.0070.03512.68
5.3.180.0090.03312.67
5.3.170.0050.03612.67
5.3.160.0060.03612.67
5.3.150.0040.03812.68
5.3.140.0070.03512.66
5.3.130.0050.04112.66
5.3.120.0070.03712.66
5.3.110.0120.03612.66
5.3.100.0040.03812.13
5.3.90.0080.03712.11
5.3.80.0060.03612.10
5.3.70.0040.03812.10
5.3.60.0040.03712.09
5.3.50.0050.03612.03
5.3.40.0060.03912.02
5.3.30.0070.03511.98
5.3.20.0070.03711.77
5.3.10.0070.03611.73
5.3.00.0080.03411.72
5.2.170.0050.0299.22
5.2.160.0040.0299.22
5.2.150.0050.0299.22
5.2.140.0030.0319.21
5.2.130.0030.0309.18
5.2.120.0050.0279.18
5.2.110.0070.0269.18
5.2.100.0050.0279.19
5.2.90.0030.0309.18
5.2.80.0040.0309.18
5.2.70.0020.0329.17
5.2.60.0050.0299.13
5.2.50.0050.0329.11
5.2.40.0050.0349.08
5.2.30.0050.0299.05
5.2.20.0040.0359.04
5.2.10.0060.0298.95
5.2.00.0070.0288.81
5.1.60.0040.0258.09
5.1.50.0030.0258.09
5.1.40.0070.0278.07
5.1.30.0080.0268.43
5.1.20.0040.0318.44
5.1.10.0060.0238.17
5.1.00.0060.0238.17
5.0.50.0050.0186.64
5.0.40.0040.0186.51
5.0.30.0050.0306.31
5.0.20.0050.0176.28
5.0.10.0020.0206.27
5.0.00.0040.0296.26
4.4.90.0040.0194.78
4.4.80.0030.0194.76
4.4.70.0030.0184.75
4.4.60.0020.0164.75
4.4.50.0040.0184.77
4.4.40.0020.0294.71
4.4.30.0050.0164.75
4.4.20.0030.0144.85
4.4.10.0040.0144.85
4.4.00.0050.0254.76
4.3.110.0030.0184.67
4.3.100.0040.0134.66
4.3.90.0030.0144.63
4.3.80.0020.0284.58
4.3.70.0030.0134.63
4.3.60.0040.0124.63
4.3.50.0030.0244.63
4.3.40.0040.0244.54
4.3.30.0030.0153.29
4.3.20.0030.0193.26
4.3.10.0000.0193.22
4.3.00.0030.0236.74

preferences:
35.43 ms | 401 KiB | 5 Q