3v4l.org

run code in 300+ PHP versions simultaneously
<?php function addArrays($input,$output) { return array_sum(func_get_args()); } $output = array(0,0,0,0,0); $testdata = "580,680,480,380"; $output = array_map(addArrays(), $output, array_push(explode(",", $testdata),array_sum(explode(",", $testdata)))); 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.0110.01118.52
8.3.50.0110.00921.28
8.3.40.0110.00718.85
8.3.30.0090.00618.67
8.3.20.0000.00820.20
8.3.10.0090.00021.95
8.3.00.0040.00417.54
8.2.180.0150.00618.51
8.2.170.0080.00822.96
8.2.160.0030.01220.52
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00417.50
8.2.110.0060.00320.79
8.2.100.0030.01017.50
8.2.90.0090.00019.09
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0030.00517.91
8.2.50.0000.00818.07
8.2.40.0050.00319.53
8.2.30.0030.00520.67
8.2.20.0050.00217.71
8.2.10.0040.00418.10
8.2.00.0080.00018.06
8.1.280.0210.00025.92
8.1.270.0070.01323.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.79
8.1.230.0030.00917.66
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0050.00517.34
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0040.00421.96
8.1.150.0040.00418.74
8.1.140.0040.00417.30
8.1.130.0000.00717.51
8.1.120.0000.00717.31
8.1.110.0060.00317.38
8.1.100.0040.00417.44
8.1.90.0020.00517.42
8.1.80.0000.01017.28
8.1.70.0080.00017.32
8.1.60.0070.00017.60
8.1.50.0040.00417.57
8.1.40.0040.00417.43
8.1.30.0060.00317.56
8.1.20.0000.00717.54
8.1.10.0030.00517.46
8.1.00.0070.00017.57
8.0.300.0050.00218.77
8.0.290.0070.00016.63
8.0.280.0000.00718.41
8.0.270.0030.00317.19
8.0.260.0060.00317.11
8.0.250.0000.00716.85
8.0.240.0030.00316.92
8.0.230.0180.00016.93
8.0.220.0090.00016.87
8.0.210.0040.00416.90
8.0.200.0030.00316.81
8.0.190.0000.00716.87
8.0.180.0020.00516.94
8.0.170.0000.00816.73
8.0.160.0080.00017.00
8.0.150.0000.00716.87
8.0.140.0070.00016.87
8.0.130.0000.00513.38
8.0.120.0000.00716.75
8.0.110.0040.00416.78
8.0.100.0000.00716.79
8.0.90.0000.00716.85
8.0.80.0140.00316.86
8.0.70.0070.00016.74
8.0.60.0080.00016.87
8.0.50.0040.00416.91
8.0.30.0140.00416.88
8.0.20.0110.00917.40
8.0.10.0050.00217.08
8.0.00.0120.00716.70
7.4.330.0050.00015.08
7.4.320.0000.00716.36
7.4.300.0040.00416.65
7.4.290.0030.00316.61
7.4.280.0040.00416.61
7.4.270.0000.00616.46
7.4.260.0030.00316.49
7.4.250.0040.00416.55
7.4.240.0020.00516.49
7.4.230.0000.00716.66
7.4.220.0100.00716.61
7.4.210.0070.00716.55
7.4.200.0000.00716.34
7.4.160.0130.00316.59
7.4.150.0070.01117.40
7.4.140.0130.01117.86
7.4.130.0060.01116.54
7.4.120.0120.00716.54
7.4.110.0090.00916.47
7.4.100.0150.00916.48
7.4.90.0070.01016.58
7.4.80.0100.00719.39
7.4.70.0060.01516.41
7.4.60.0180.00016.66
7.4.50.0030.00516.28
7.4.40.0040.01216.60
7.4.30.0070.01016.42
7.4.00.0050.01115.05
7.3.330.0000.00713.11
7.3.320.0000.00513.24
7.3.310.0000.00716.18
7.3.300.0070.00016.21
7.3.290.0080.00716.27
7.3.280.0110.00916.25
7.3.270.0100.00717.40
7.3.260.0090.01616.42
7.3.250.0110.01116.24
7.3.240.0150.00816.59
7.3.230.0100.01016.40
7.3.210.0130.00716.46
7.3.200.0140.00316.45
7.3.190.0130.00416.54
7.3.180.0140.00316.50
7.3.170.0000.01616.41
7.3.160.0060.01516.47
7.3.120.0040.01414.70
7.3.110.0140.00014.70
7.3.100.0030.00614.75
7.3.90.0030.01314.69
7.3.80.0030.01014.60
7.3.70.0030.00714.59
7.3.60.0000.01414.71
7.3.50.0080.00414.77
7.3.40.0060.00614.47
7.3.30.0050.00514.70
7.3.20.0150.00016.54
7.3.10.0050.00716.68
7.3.00.0110.00316.60
7.2.330.0120.00616.46
7.2.320.0110.00716.48
7.2.310.0120.00616.73
7.2.300.0160.00016.52
7.2.290.0030.01316.50
7.2.250.0040.01414.78
7.2.240.0030.01514.83
7.2.230.0000.01314.67
7.2.220.0030.01014.89
7.2.210.0050.00515.00
7.2.200.0100.00714.91
7.2.190.0000.01714.87
7.2.180.0060.00914.54
7.2.170.0080.00614.80
7.2.130.0040.00716.74
7.2.120.0100.00316.79
7.2.110.0060.00316.52
7.2.100.0030.00716.65
7.2.90.0030.01016.66
7.2.80.0040.00716.83
7.2.70.0000.00916.81
7.2.60.0050.00516.87
7.2.50.0030.01016.82
7.2.40.0100.00316.57
7.2.30.0090.00316.54
7.2.20.0000.01416.73
7.2.10.0090.00016.82
7.2.00.0050.00717.89
7.1.330.0060.00915.64
7.1.320.0040.00815.64
7.1.310.0040.01215.70
7.1.300.0000.00815.28
7.1.290.0030.01015.59
7.1.280.0050.00515.50
7.1.270.0040.00815.40
7.1.260.0100.00315.26
7.1.250.0070.00715.20
7.1.200.0130.00315.46
7.1.100.0000.00917.88
7.1.70.0000.00717.07
7.1.60.0070.01719.19
7.1.50.0070.01716.88
7.1.00.0070.08322.46
7.0.200.0000.00916.70
7.0.60.0070.05319.93
7.0.50.0130.07717.97
7.0.40.0130.07719.96
7.0.30.0300.07720.24
7.0.20.0300.06320.10
7.0.10.0170.08020.33
7.0.00.0070.04020.27
5.6.280.0070.07021.12
5.6.210.0030.08020.47
5.6.200.0070.03718.15
5.6.190.0230.07320.45
5.6.180.0500.06720.52
5.6.170.0300.07720.39
5.6.160.0000.06720.50
5.6.150.0070.05318.18
5.6.140.0030.06318.24
5.6.130.0070.04718.17
5.6.120.0070.08021.13
5.6.110.0030.07321.12
5.6.100.0000.08320.99
5.6.90.0070.07720.95
5.6.80.0000.08320.51
5.5.350.0230.05720.53
5.5.340.0070.07718.02
5.5.330.0100.06720.40
5.5.320.0230.07720.36
5.5.310.0200.04320.41
5.5.300.0030.04017.92
5.5.290.0070.07717.97
5.5.280.0100.05020.96
5.5.270.0070.08320.96
5.5.260.0030.06720.88
5.5.250.0070.04720.79
5.5.240.0030.08320.19
5.4.450.0170.05019.39
5.4.440.0100.05719.58
5.4.430.0100.05719.58
5.4.420.0100.05719.30
5.4.410.0100.05319.04
5.4.400.0170.04719.29
5.4.390.0300.05319.01
5.4.380.0130.05319.15
5.4.370.0170.05319.23
5.4.360.0230.04719.26
5.4.350.0130.05319.28
5.4.340.0130.05718.98
5.4.320.0100.05719.01
5.4.310.0200.05019.15
5.4.300.0200.06018.98
5.4.290.0200.04319.15
5.4.280.0130.05019.28
5.4.270.0100.05019.01
5.4.260.0130.04719.12
5.4.250.0130.05019.25
5.4.240.0270.03719.38
5.4.230.0200.04319.00
5.4.220.0230.04019.13
5.4.210.0230.04019.05
5.4.200.0130.05719.25
5.4.190.0170.05319.20
5.4.180.0170.04718.97
5.4.170.0200.04319.14
5.4.160.0170.05018.96
5.4.150.0230.07019.09
5.4.140.0130.06316.31
5.4.130.0200.06316.50
5.4.120.0200.04316.55
5.4.110.0200.05016.64
5.4.100.0130.05016.60
5.4.90.0130.05016.61
5.4.80.0130.05016.51
5.4.70.0200.03016.34
5.4.60.0200.03716.43
5.4.50.0170.04016.51
5.4.40.0230.07316.23
5.4.30.0230.04316.42
5.4.20.0230.04716.55
5.4.10.0170.04716.22

preferences:
56.02 ms | 401 KiB | 5 Q