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 = array_push(explode(",", $testdata),array_sum(explode(",", $testdata))); $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.00018.68
8.3.50.0080.01221.95
8.3.40.0110.00718.98
8.3.30.0040.01218.70
8.3.20.0040.00420.39
8.3.10.0030.00521.94
8.3.00.0030.00617.80
8.2.180.0040.01216.73
8.2.170.0120.00322.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00417.63
8.2.110.0030.00619.04
8.2.100.0110.00017.63
8.2.90.0030.00518.89
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0080.00018.00
8.2.50.0060.00318.07
8.2.40.0040.00419.39
8.2.30.0000.00720.53
8.2.20.0080.00017.60
8.2.10.0070.00018.10
8.2.00.0060.00318.20
8.1.280.0080.00825.92
8.1.270.0140.00723.70
8.1.260.0000.00926.35
8.1.250.0030.00528.09
8.1.240.0080.00023.83
8.1.230.0080.00317.75
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0000.00817.36
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0050.00318.38
8.1.160.0070.00022.07
8.1.150.0040.00418.89
8.1.140.0060.00317.37
8.1.130.0000.00817.58
8.1.120.0030.00317.46
8.1.110.0050.00317.47
8.1.100.0080.00017.52
8.1.90.0000.00717.45
8.1.80.0000.00717.50
8.1.70.0000.00717.44
8.1.60.0020.00517.49
8.1.50.0000.00717.44
8.1.40.0060.00317.54
8.1.30.0060.00317.65
8.1.20.0040.00417.72
8.1.10.0000.00717.54
8.1.00.0030.00517.57
8.0.300.0040.00418.77
8.0.290.0000.00716.58
8.0.280.0000.00718.39
8.0.270.0040.00417.24
8.0.260.0030.00317.30
8.0.250.0000.00716.98
8.0.240.0030.00316.89
8.0.230.0060.00616.99
8.0.220.0060.00316.84
8.0.210.0000.00716.94
8.0.200.0030.00617.01
8.0.190.0040.00417.00
8.0.180.0000.00816.98
8.0.170.0000.00816.89
8.0.160.0030.00616.88
8.0.150.0030.00516.89
8.0.140.0030.00616.79
8.0.130.0030.00313.43
8.0.120.0000.00816.90
8.0.110.0050.00316.91
8.0.100.0000.00716.80
8.0.90.0000.00716.93
8.0.80.0030.01416.95
8.0.70.0020.00516.79
8.0.60.0040.00416.77
8.0.50.0000.00716.98
8.0.30.0090.00717.19
8.0.20.0100.00917.40
8.0.10.0000.00716.96
8.0.00.0070.01016.96
7.4.330.0050.00015.08
7.4.320.0030.00316.50
7.4.300.0030.00316.55
7.4.290.0000.00716.58
7.4.280.0080.00016.50
7.4.270.0080.00016.52
7.4.260.0000.00816.48
7.4.250.0030.00316.42
7.4.240.0000.00716.47
7.4.230.0040.00316.63
7.4.220.0090.01516.60
7.4.210.0140.00016.62
7.4.200.0000.00716.59
7.4.160.0080.01316.72
7.4.150.0130.00717.40
7.4.140.0080.01417.86
7.4.130.0150.00416.57
7.4.120.0100.01016.51
7.4.110.0100.00716.58
7.4.100.0090.01116.57
7.4.90.0140.00316.63
7.4.80.0030.01819.39
7.4.70.0120.00916.66
7.4.60.0090.00916.35
7.4.50.0080.00016.56
7.4.40.0070.01016.50
7.4.30.0100.00716.61
7.4.00.0070.01114.80
7.3.330.0000.00613.32
7.3.320.0000.00513.35
7.3.310.0040.00416.38
7.3.300.0000.00716.23
7.3.290.0060.01116.35
7.3.280.0140.00516.35
7.3.270.0140.00317.40
7.3.260.0100.00716.48
7.3.250.0070.01116.37
7.3.240.0120.00916.59
7.3.230.0040.01316.48
7.3.210.0090.00616.39
7.3.200.0030.01416.36
7.3.190.0090.00616.48
7.3.180.0060.01016.46
7.3.170.0040.01216.52
7.3.160.0070.01416.37
7.2.330.0100.01016.46
7.2.320.0070.01416.64
7.2.310.0200.00016.86
7.2.300.0100.00616.47
7.2.290.0140.00316.63
7.2.60.0100.00616.75
7.2.00.0060.00619.52
7.1.200.0070.00415.58
7.1.100.0070.00418.23
7.1.70.0020.00517.17
7.1.60.0130.01019.19
7.1.50.0170.00716.71
7.1.00.0070.07022.31
7.0.200.0000.00716.48
7.0.60.0100.04719.78
7.0.50.0030.04017.88
7.0.40.0070.04320.30
7.0.30.0230.05320.16
7.0.20.0300.04020.27
7.0.10.0030.06020.26
7.0.00.0100.08320.32
5.6.280.0030.06020.91
5.6.210.0070.04320.52
5.6.200.0030.08018.11
5.6.190.0230.04320.41
5.6.180.0330.03720.48
5.6.170.0270.07720.44
5.6.160.0030.08720.39
5.6.150.0030.04318.27
5.6.140.0100.05318.11
5.6.130.0070.04018.24
5.6.120.0030.05721.03
5.6.110.0130.05721.01
5.6.100.0130.06320.98
5.6.90.0070.09721.12
5.6.80.0100.04720.38
5.5.350.0300.07720.38
5.5.340.0100.07017.98
5.5.330.0100.04020.27
5.5.320.0130.05720.34
5.5.310.0230.08320.21
5.5.300.0030.08718.09
5.5.290.0070.04717.98
5.5.280.0070.05020.76
5.5.270.0030.04320.86
5.5.260.0100.07720.88
5.5.250.0000.04320.46
5.5.240.0070.06320.28
5.4.450.0070.06019.48
5.4.440.0100.05719.30
5.4.430.0130.05019.16
5.4.420.0130.05319.46
5.4.410.0200.05319.05
5.4.400.0130.05319.27
5.4.390.0100.05719.01
5.4.380.0070.05719.14
5.4.370.0130.05319.37
5.4.360.0130.06018.89
5.4.350.0200.04718.87
5.4.340.0070.07319.13
5.4.320.0130.05019.16
5.4.310.0170.04719.06
5.4.300.0130.05019.26
5.4.290.0230.04019.15
5.4.280.0170.06319.30
5.4.270.0170.06319.13
5.4.260.0170.04719.14
5.4.250.0130.05018.97
5.4.240.0230.04019.28
5.4.230.0070.06019.31
5.4.220.0070.06019.12
5.4.210.0100.05319.14
5.4.200.0230.04019.05
5.4.190.0200.04319.27
5.4.180.0130.05018.86
5.4.170.0170.06019.05
5.4.160.0200.04719.26
5.4.150.0100.05719.11
5.4.140.0030.05716.44
5.4.130.0030.05316.56
5.4.120.0200.05016.41
5.4.110.0130.05316.64
5.4.100.0200.04316.28
5.4.90.0200.04316.60
5.4.80.0130.04716.18
5.4.70.0230.03716.23
5.4.60.0330.06316.44
5.4.50.0370.05016.53
5.4.40.0170.07016.37
5.4.30.0300.03716.32
5.4.20.0170.03716.53
5.4.10.0300.07316.32

preferences:
39.99 ms | 401 KiB | 5 Q