3v4l.org

run code in 300+ PHP versions simultaneously
<?php function addArrays() { return array_sum(func_get_args()); } $output = array(0,0,0,0,0); $testdata = "580,680,480,380"; $input = explode(",", $testdata); $subTotal = array_sum(explode(",", $testdata)); array_push($input,$subTotal); $output = array_map(addArrays(), $output, $input); var_dump(output); ?>

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.0170.00318.50
8.3.50.0070.01016.44
8.3.40.0120.00618.83
8.3.30.0100.01018.76
8.3.20.0050.00320.30
8.3.10.0060.00321.67
8.3.00.0060.00317.66
8.2.180.0110.00418.41
8.2.170.0130.00322.96
8.2.160.0110.00420.48
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00317.50
8.2.110.0040.00419.27
8.2.100.0090.00317.63
8.2.90.0030.00519.22
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0080.00018.03
8.2.50.0060.00318.07
8.2.40.0080.00019.34
8.2.30.0040.00420.60
8.2.20.0000.00717.72
8.2.10.0050.00218.17
8.2.00.0000.00718.02
8.1.280.0100.01025.92
8.1.270.0060.00324.05
8.1.260.0080.00026.35
8.1.250.0020.00528.09
8.1.240.0040.00423.88
8.1.230.0120.00017.66
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.48
8.1.160.0040.00422.05
8.1.150.0000.00718.84
8.1.140.0050.00317.48
8.1.130.0000.00817.70
8.1.120.0050.00317.48
8.1.110.0040.00417.35
8.1.100.0080.00017.36
8.1.90.0000.00817.46
8.1.80.0000.00817.41
8.1.70.0000.00717.47
8.1.60.0080.00017.61
8.1.50.0040.00417.35
8.1.40.0040.00417.57
8.1.30.0030.00617.49
8.1.20.0000.00817.47
8.1.10.0040.00417.48
8.1.00.0000.00717.48
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0030.00318.49
8.0.270.0000.00817.16
8.0.260.0000.00817.26
8.0.250.0000.00716.99
8.0.240.0000.00817.01
8.0.230.0100.00016.90
8.0.220.0030.00616.94
8.0.210.0030.00316.97
8.0.200.0030.00317.05
8.0.190.0040.00417.00
8.0.180.0060.00316.98
8.0.170.0030.00616.86
8.0.160.0040.00417.08
8.0.150.0000.00716.89
8.0.140.0040.00416.79
8.0.130.0000.00513.35
8.0.120.0030.00516.82
8.0.110.0030.00516.87
8.0.100.0000.00816.80
8.0.90.0040.00416.91
8.0.80.0030.01316.94
8.0.70.0040.00416.81
8.0.60.0000.00716.90
8.0.50.0040.00417.07
8.0.30.0010.01416.99
8.0.20.0070.01217.40
8.0.10.0000.00817.14
8.0.00.0110.01016.79
7.4.330.0050.00015.13
7.4.320.0030.00316.51
7.4.300.0030.00316.60
7.4.290.0050.00216.47
7.4.280.0000.00816.53
7.4.270.0000.00716.57
7.4.260.0000.00716.48
7.4.250.0000.00716.55
7.4.240.0040.00316.53
7.4.230.0040.00416.33
7.4.220.0100.00616.41
7.4.210.0090.00916.53
7.4.200.0000.00716.34
7.4.160.0080.00816.42
7.4.150.0000.01717.40
7.4.140.0090.01417.86
7.4.130.0160.00516.54
7.4.120.0050.01116.55
7.4.110.0100.00716.40
7.4.100.0070.01116.50
7.4.90.0030.01316.50
7.4.80.0100.00619.39
7.4.70.0040.01216.59
7.4.60.0090.00616.40
7.4.50.0030.00516.66
7.4.40.0060.00916.66
7.4.30.0120.00616.44
7.4.00.0080.00715.10
7.3.330.0050.00013.25
7.3.320.0020.00213.09
7.3.310.0000.00716.20
7.3.300.0040.00416.21
7.3.290.0110.00616.31
7.3.280.0100.01116.26
7.3.270.0090.00917.40
7.3.260.0150.00916.45
7.3.250.0110.00616.52
7.3.240.0120.01216.34
7.3.230.0090.00816.50
7.3.210.0150.00416.30
7.3.200.0070.01016.34
7.3.190.0080.00816.37
7.3.180.0110.00716.62
7.3.170.0090.00616.43
7.3.160.0100.01316.29
7.3.120.0040.00714.87
7.3.110.0070.01015.08
7.3.100.0090.00914.63
7.3.90.0070.01114.73
7.3.80.0060.01014.84
7.3.70.0100.00614.66
7.3.60.0080.00614.90
7.3.50.0000.01114.82
7.3.40.0030.01214.76
7.3.30.0040.01114.84
7.3.20.0000.01216.59
7.3.10.0060.00616.70
7.3.00.0050.01016.61
7.2.330.0060.01316.43
7.2.320.0130.00416.64
7.2.310.0170.00916.72
7.2.300.0080.00816.73
7.2.290.0070.01016.78
7.2.250.0070.01315.18
7.2.240.0070.01115.06
7.2.230.0030.01015.07
7.2.220.0030.01214.93
7.2.210.0090.00615.06
7.2.200.0060.00614.88
7.2.190.0000.01414.90
7.2.180.0060.01015.08
7.2.170.0090.00614.89
7.2.130.0030.01316.81
7.2.120.0000.01416.88
7.2.110.0060.00716.87
7.2.100.0030.00716.91
7.2.90.0080.00816.97
7.2.80.0070.00316.80
7.2.70.0060.00616.67
7.2.60.0070.00816.93
7.2.50.0000.00916.71
7.2.40.0100.00316.82
7.2.30.0060.00616.75
7.2.20.0060.00617.02
7.2.10.0000.01116.96
7.2.00.0070.00617.97
7.1.330.0130.00315.76
7.1.320.0000.01115.73
7.1.310.0030.01015.80
7.1.300.0100.00315.70
7.1.290.0030.01015.57
7.1.280.0060.00315.81
7.1.270.0080.00415.72
7.1.260.0070.00715.66
7.1.250.0070.00715.61
7.1.200.0030.00315.71
7.1.100.0060.00617.80
7.1.70.0000.00717.20
7.1.60.0150.01119.19
7.1.50.0140.01116.96
7.1.00.0030.07322.30
7.0.200.0080.00016.76
7.0.60.0100.08019.82
7.0.50.0130.03017.85
7.0.40.0130.07720.11
7.0.30.0200.03720.24
7.0.20.0300.08020.23
7.0.10.0100.03720.30
7.0.00.0170.07320.16
5.6.280.0000.06720.93
5.6.210.0130.08020.54
5.6.200.0030.06018.29
5.6.190.0070.08020.68
5.6.180.0030.08320.61
5.6.170.0270.05720.51
5.6.160.0100.07320.71
5.6.150.0100.07018.15
5.6.140.0030.08318.15
5.6.130.0070.07018.11
5.6.120.0170.04320.97
5.6.110.0070.08720.98
5.6.100.0100.07320.99
5.6.90.0200.06720.98
5.6.80.0100.07720.38
5.5.350.0300.08020.34
5.5.340.0030.06717.94
5.5.330.0030.05720.21
5.5.320.0130.05720.27
5.5.310.0270.07320.32
5.5.300.0130.07317.95
5.5.290.0130.05017.95
5.5.280.0030.08020.89
5.5.270.0100.03320.76
5.5.260.0100.05720.73
5.5.250.0030.06020.70
5.5.240.0100.07020.19
5.4.450.0000.07019.20
5.4.440.0130.06019.30
5.4.430.0230.05019.33
5.4.420.0200.05019.58
5.4.410.0230.04719.32
5.4.400.0300.06719.26
5.4.390.0170.05718.89
5.4.380.0170.07319.15
5.4.370.0230.06719.37
5.4.360.0200.06719.30
5.4.350.0170.05719.06
5.4.340.0130.05718.98
5.4.320.0200.07019.28
5.4.310.0200.05019.05
5.4.300.0100.05319.15
5.4.290.0070.05719.01
5.4.280.0130.05319.22
5.4.270.0170.04718.84
5.4.260.0130.07019.32
5.4.250.0170.06018.84
5.4.240.0130.05719.22
5.4.230.0170.05019.20
5.4.220.0170.05319.27
5.4.210.0170.05019.31
5.4.200.0170.05319.25
5.4.190.0270.06319.29
5.4.180.0170.05719.29
5.4.170.0230.04019.28
5.4.160.0070.06019.26
5.4.150.0030.06718.86
5.4.140.0070.06016.31
5.4.130.0200.04316.55
5.4.120.0100.05316.41
5.4.110.0100.05316.53
5.4.100.0200.04316.27
5.4.90.0130.05016.52
5.4.80.0170.04716.26
5.4.70.0370.05016.50
5.4.60.0270.04016.25
5.4.50.0370.06316.51
5.4.40.0170.03716.43
5.4.30.0270.06716.30
5.4.20.0200.04016.43
5.4.10.0200.04016.53

preferences:
36.21 ms | 400 KiB | 5 Q