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.0140.00018.43
8.3.50.0100.00821.98
8.3.40.0090.00618.82
8.3.30.0110.00418.92
8.3.20.0000.00820.13
8.3.10.0000.00920.71
8.3.00.0040.00419.54
8.2.180.0140.00416.75
8.2.170.0130.00722.96
8.2.160.0030.01020.53
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00826.16
8.2.120.0050.00222.24
8.2.110.0060.00320.35
8.2.100.0000.01118.03
8.2.90.0060.00319.23
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0000.00719.14
8.2.20.0040.00417.74
8.2.10.0060.00317.96
8.2.00.0060.00317.59
8.1.280.0130.00725.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.83
8.1.230.0070.00319.15
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00717.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0030.00718.52
8.1.160.0050.00221.99
8.1.150.0070.00018.92
8.1.140.0070.00017.35
8.1.130.0070.00017.69
8.1.120.0000.00717.45
8.1.110.0070.00017.44
8.1.100.0070.00017.41
8.1.90.0000.00717.47
8.1.80.0070.00017.34
8.1.70.0030.00317.41
8.1.60.0060.00317.43
8.1.50.0040.00417.37
8.1.40.0030.00517.48
8.1.30.0040.00417.69
8.1.20.0000.00817.65
8.1.10.0050.00217.55
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0000.00717.14
8.0.260.0000.00817.30
8.0.250.0030.00316.88
8.0.240.0000.00716.84
8.0.230.0000.00816.89
8.0.220.0070.00016.90
8.0.210.0030.00316.83
8.0.200.0070.00016.97
8.0.190.0050.00316.93
8.0.180.0070.00017.02
8.0.170.0000.00716.90
8.0.160.0040.00416.89
8.0.150.0040.00416.79
8.0.140.0050.00316.87
8.0.130.0060.00013.39
8.0.120.0000.01016.94
8.0.110.0000.00816.97
8.0.100.0040.00416.92
8.0.90.0050.00316.82
8.0.80.0140.00316.82
8.0.70.0040.00516.89
8.0.60.0040.00416.97
8.0.50.0040.00416.90
8.0.30.0110.01317.18
8.0.20.0140.01117.40
8.0.10.0040.00417.11
8.0.00.0130.00716.78
7.4.330.0000.00515.00
7.4.320.0030.00316.59
7.4.300.0000.00716.50
7.4.290.0000.00816.51
7.4.280.0060.00316.48
7.4.270.0030.00316.41
7.4.260.0000.00916.38
7.4.250.0040.00416.48
7.4.240.0000.00716.43
7.4.230.0000.00716.33
7.4.220.0100.00716.57
7.4.210.0050.00916.50
7.4.200.0070.00016.38
7.4.160.0130.00416.48
7.4.150.0110.00817.40
7.4.140.0120.00617.86
7.4.130.0060.01116.53
7.4.120.0110.00716.57
7.4.110.0110.00616.51
7.4.100.0130.00716.50
7.4.90.0150.00316.46
7.4.80.0080.00816.51
7.4.70.0030.01316.44
7.4.60.0100.00716.42
7.4.50.0080.00016.52
7.4.40.0030.01416.50
7.4.30.0130.00416.55
7.4.00.0060.01015.00
7.3.330.0030.00313.09
7.3.320.0030.00313.30
7.3.310.0040.00416.26
7.3.300.0040.00416.17
7.3.290.0090.00616.37
7.3.280.0070.00816.26
7.3.270.0120.00817.40
7.3.260.0080.01116.41
7.3.250.0130.00816.24
7.3.240.0090.00916.37
7.3.230.0140.00316.39
7.3.210.0080.00816.29
7.3.200.0080.01119.39
7.3.190.0110.00816.35
7.3.180.0100.00716.11
7.3.170.0080.00816.57
7.3.160.0060.00916.27
7.3.10.0030.00616.52
7.3.00.0100.00016.64
7.2.330.0170.00016.40
7.2.320.0030.01316.59
7.2.310.0120.01216.70
7.2.300.0130.01016.71
7.2.290.0070.01016.52
7.2.130.0100.00316.91
7.2.120.0040.00416.95
7.2.110.0030.00716.95
7.2.100.0080.00816.95
7.2.90.0030.01016.86
7.2.80.0040.01116.96
7.2.70.0090.00316.77
7.2.60.0060.00816.81
7.2.50.0090.00616.90
7.2.40.0100.00016.89
7.2.30.0040.00816.93
7.2.20.0060.00617.07
7.2.10.0040.00816.97
7.2.00.0000.01418.17
7.1.250.0090.00015.54
7.1.200.0030.00515.90
7.1.100.0000.01118.13
7.1.70.0000.00917.04
7.1.60.0120.01219.32
7.1.50.0000.02017.02
7.1.00.0070.07322.33
7.0.200.0000.01016.50
7.0.140.0070.06722.05
7.0.60.0030.08019.90
7.0.50.0030.07017.87
7.0.40.0070.06020.24
7.0.30.0130.05320.21
7.0.20.0270.04320.23
7.0.10.0070.05720.24
7.0.00.0100.07320.10
5.6.280.0030.09021.13
5.6.210.0270.06320.48
5.6.200.0170.07018.29
5.6.190.0030.06320.63
5.6.180.0600.06320.55
5.6.170.0330.07020.50
5.6.160.0100.07720.76
5.6.150.0030.05318.15
5.6.140.0100.06018.28
5.6.130.0030.05018.11
5.6.120.0100.04320.74
5.6.110.0070.07721.02
5.6.100.0000.04720.98
5.6.90.0030.04720.98
5.6.80.0070.04020.47
5.5.350.0170.07320.43
5.5.340.0130.07318.05
5.5.330.0030.04320.42
5.5.320.0300.04020.42
5.5.310.0300.07320.34
5.5.300.0100.07317.92
5.5.290.0030.05717.96
5.5.280.0170.07720.69
5.5.270.0130.04020.96
5.5.260.0000.04320.97
5.5.250.0130.07720.68
5.5.240.0130.07320.29
5.4.450.0400.05319.48
5.4.440.0100.05719.47
5.4.430.1100.06319.63
5.4.420.0900.06319.31
5.4.410.0100.05319.18
5.4.400.0730.06019.16
5.4.390.0730.07719.01
5.4.380.0330.06018.75
5.4.370.0630.05718.51
5.4.360.0470.05318.75
5.4.350.0370.06718.48
5.4.340.0270.06318.79
5.4.320.0080.03712.52
5.4.310.0030.04512.52
5.4.300.0070.03312.52
5.4.290.0090.04112.51
5.4.280.0030.04812.41
5.4.270.0050.03912.41
5.4.260.0090.03412.41
5.4.250.0100.04112.41
5.4.240.0070.04312.41
5.4.230.0080.03912.40
5.4.220.0090.03212.40
5.4.210.0060.03512.40
5.4.200.0070.03612.40
5.4.190.0050.03612.40
5.4.180.0080.04012.39
5.4.170.0050.03512.40
5.4.160.0060.03512.40
5.4.150.0060.03512.39
5.4.140.0080.03512.09
5.4.130.0020.03912.07
5.4.120.0060.03512.03
5.4.110.0110.02912.03
5.4.100.0050.03612.03
5.4.90.0050.03812.03
5.4.80.0060.04212.03
5.4.70.0080.03812.02
5.4.60.0090.03612.03
5.4.50.0050.03612.02
5.4.40.0060.03412.02
5.4.30.0100.03412.01
5.4.20.0060.03912.00
5.4.10.0080.03512.01
5.4.00.0060.03911.50
5.3.290.0040.03912.80
5.3.280.0100.03212.71
5.3.270.0040.04012.73
5.3.260.0070.03812.72
5.3.250.0050.03812.72
5.3.240.0050.03612.72
5.3.230.0090.03912.71
5.3.220.0060.03712.68
5.3.210.0060.03812.68
5.3.200.0060.03512.68
5.3.190.0050.03712.68
5.3.180.0030.03812.68
5.3.170.0060.03512.67
5.3.160.0040.04012.67
5.3.150.0080.04012.67
5.3.140.0060.03612.66
5.3.130.0060.04112.66
5.3.120.0080.04112.65
5.3.110.0060.04212.66
5.3.100.0090.03412.14
5.3.90.0090.03612.11
5.3.80.0060.03512.10
5.3.70.0050.04612.10
5.3.60.0050.03712.08
5.3.50.0070.03412.03
5.3.40.0090.03612.02
5.3.30.0080.03611.99
5.3.20.0050.03511.77
5.3.10.0040.03511.73
5.3.00.0060.03611.72
5.2.170.0030.0309.22
5.2.160.0050.0289.22
5.2.150.0070.0319.22
5.2.140.0060.0289.21
5.2.130.0070.0269.18
5.2.120.0040.0299.18
5.2.110.0050.0299.19
5.2.100.0040.0309.18
5.2.90.0070.0269.18
5.2.80.0050.0309.18
5.2.70.0070.0309.18
5.2.60.0060.0289.13
5.2.50.0050.0349.10
5.2.40.0050.0329.07
5.2.30.0030.0309.05
5.2.20.0040.0329.04
5.2.10.0070.0318.95
5.2.00.0050.0308.81
5.1.60.0030.0268.09
5.1.50.0050.0268.09
5.1.40.0060.0228.07
5.1.30.0050.0308.42
5.1.20.0020.0298.44
5.1.10.0050.0258.17
5.1.00.0040.0258.17
5.0.50.0040.0206.64
5.0.40.0010.0216.51
5.0.30.0030.0316.32
5.0.20.0030.0196.28
5.0.10.0040.0196.27
5.0.00.0050.0286.26
4.4.90.0050.0124.78
4.4.80.0030.0154.75
4.4.70.0020.0274.75
4.4.60.0010.0204.75
4.4.50.0010.0164.77
4.4.40.0040.0234.71
4.4.30.0030.0194.76
4.4.20.0030.0194.84
4.4.10.0010.0274.84
4.4.00.0040.0244.76
4.3.110.0020.0164.67
4.3.100.0030.0154.67
4.3.90.0030.0144.63
4.3.80.0040.0224.58
4.3.70.0040.0184.63
4.3.60.0020.0144.63
4.3.50.0030.0164.63
4.3.40.0010.0254.54
4.3.30.0030.0213.28
4.3.20.0020.0203.26
4.3.10.0020.0183.22
4.3.00.0070.0206.79

preferences:
47.85 ms | 401 KiB | 5 Q