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)); $input = 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.0120.00618.59
8.3.50.0060.01116.15
8.3.40.0040.01518.79
8.3.30.0120.00318.80
8.3.20.0040.00420.25
8.3.10.0030.01021.72
8.3.00.0040.00417.68
8.2.180.0040.01116.50
8.2.170.0100.00722.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0060.00317.38
8.2.110.0030.00719.08
8.2.100.0080.00417.91
8.2.90.0040.00417.97
8.2.80.0050.00319.32
8.2.70.0000.00817.63
8.2.60.0000.00817.63
8.2.50.0040.00417.77
8.2.40.0070.00319.52
8.2.30.0040.00420.52
8.2.20.0000.00917.73
8.2.10.0040.00418.18
8.2.00.0070.00017.98
8.1.280.0130.00325.92
8.1.270.0100.01023.61
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00622.74
8.1.230.0040.00720.97
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0080.00017.36
8.1.190.0000.00817.22
8.1.180.0000.00918.10
8.1.170.0080.00017.62
8.1.160.0030.00522.00
8.1.150.0030.00618.88
8.1.140.0080.00017.40
8.1.130.0000.00717.57
8.1.120.0030.00317.43
8.1.110.0030.00417.33
8.1.100.0040.00417.45
8.1.90.0070.00017.35
8.1.80.0070.00017.42
8.1.70.0040.00417.40
8.1.60.0000.00817.59
8.1.50.0050.00317.53
8.1.40.0050.00217.52
8.1.30.0040.00417.54
8.1.20.0040.00417.64
8.1.10.0040.00417.59
8.1.00.0040.00417.50
8.0.300.0070.00020.13
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0000.00817.16
8.0.260.0000.00817.19
8.0.250.0070.00016.99
8.0.240.0000.00617.01
8.0.230.0050.00316.96
8.0.220.0040.00416.99
8.0.210.0000.00716.97
8.0.200.0000.00716.93
8.0.190.0040.00417.03
8.0.180.0000.00716.97
8.0.170.0050.00316.86
8.0.160.0050.00216.87
8.0.150.0020.00516.82
8.0.140.0040.00416.93
8.0.130.0000.00613.30
8.0.120.0000.00816.95
8.0.110.0000.00816.93
8.0.100.0030.00616.86
8.0.90.0050.00217.05
8.0.80.0140.00316.90
8.0.70.0000.00716.98
8.0.60.0040.00416.96
8.0.50.0040.00417.01
8.0.30.0090.00916.87
8.0.20.0090.01017.40
8.0.10.0000.00716.92
8.0.00.0080.01017.05
7.4.330.0000.00515.08
7.4.320.0060.00016.53
7.4.300.0000.00716.65
7.4.290.0030.00316.41
7.4.280.0000.00816.64
7.4.270.0030.00316.60
7.4.260.0040.00416.39
7.4.250.0000.00816.36
7.4.240.0030.00516.47
7.4.230.0070.00016.58
7.4.220.0170.00716.53
7.4.210.0140.00016.68
7.4.200.0030.00316.30
7.4.160.0230.00816.63
7.4.150.0140.00317.40
7.4.140.0140.00517.86
7.4.130.0100.00716.43
7.4.120.0080.00916.65
7.4.110.0080.00816.33
7.4.100.0110.01116.44
7.4.90.0150.00316.50
7.4.80.0120.00619.39
7.4.70.0030.01716.46
7.4.60.0140.00316.61
7.4.50.0000.00816.40
7.4.40.0040.01316.36
7.4.30.0120.00916.55
7.4.00.0000.01514.67
7.3.330.0000.00713.25
7.3.320.0030.00313.32
7.3.310.0030.00316.31
7.3.300.0030.00416.17
7.3.290.0060.01116.27
7.3.280.0080.01016.30
7.3.270.0060.01317.40
7.3.260.0090.01216.21
7.3.250.0090.01116.44
7.3.240.0060.01916.46
7.3.230.0090.00916.47
7.3.210.0090.00916.36
7.3.200.0030.01316.41
7.3.190.0130.00316.46
7.3.180.0090.00816.47
7.3.170.0070.01016.27
7.3.160.0100.01016.28
7.2.330.0120.00616.43
7.2.320.0090.01516.78
7.2.310.0150.00816.68
7.2.300.0060.01016.79
7.2.290.0130.01016.70
7.2.110.0240.00416.64
7.2.60.0070.01016.98
7.2.00.0090.00019.41
7.1.200.0080.00315.73
7.1.100.0050.00518.05
7.1.70.0040.00417.03
7.1.60.0140.00719.19
7.1.50.0100.01416.92
7.1.00.0030.07722.44
7.0.200.0030.00716.41
7.0.60.0100.06019.92
7.0.50.0000.04317.88
7.0.40.0000.06020.05
7.0.30.0330.07320.09
7.0.20.0170.04320.17
7.0.10.0030.06020.21
7.0.00.0030.04020.38
5.6.280.0100.06321.12
5.6.210.0070.07020.67
5.6.200.0070.08318.15
5.6.190.0100.03720.50
5.6.180.0070.04020.41
5.6.170.0330.07720.48
5.6.160.0070.05020.44
5.6.150.0030.05018.27
5.6.140.0130.07318.17
5.6.130.0070.05318.23
5.6.120.0030.08021.09
5.6.110.0130.08321.05
5.6.100.0170.04321.12
5.6.90.0170.07021.00
5.6.80.0070.08020.38
5.5.350.0330.06320.32
5.5.340.0030.08018.02
5.5.330.0000.05720.30
5.5.320.0170.08020.38
5.5.310.0100.03720.37
5.5.300.0100.07317.96
5.5.290.0030.05717.95
5.5.280.0100.08320.77
5.5.270.0030.04320.76
5.5.260.0130.08720.67
5.5.250.0100.08320.69
5.5.240.0070.07020.16
5.4.450.0170.06019.59
5.4.440.0130.07319.47
5.4.430.0170.05019.70
5.4.420.0100.06319.19
5.4.410.0200.05019.51
5.4.400.0230.04319.28
5.4.390.0200.05019.06
5.4.380.0130.07319.25
5.4.370.0200.07019.15
5.4.360.0100.06019.12
5.4.350.0270.04719.15
5.4.340.0200.05719.26
5.4.320.0130.05719.28
5.4.310.0230.04319.06
5.4.300.0200.06019.14
5.4.290.0070.06319.00
5.4.280.0170.05019.16
5.4.270.0170.05019.14
5.4.260.0200.04319.14
5.4.250.0200.04719.14
5.4.240.0170.05019.25
5.4.230.0170.05019.12
5.4.220.0130.05318.85
5.4.210.0170.05719.29
5.4.200.0230.04319.25
5.4.190.0070.05719.22
5.4.180.0300.05319.23
5.4.170.0130.05319.11
5.4.160.0070.06019.23
5.4.150.0300.03718.86
5.4.140.0100.05316.41
5.4.130.0200.04016.41
5.4.120.0170.05316.38
5.4.110.0100.05716.54
5.4.100.0100.06016.43
5.4.90.0130.04716.19
5.4.80.0070.05016.52
5.4.70.0270.06016.36
5.4.60.0270.06316.52
5.4.50.0330.06016.24
5.4.40.0300.04716.25
5.4.30.0300.06016.37
5.4.20.0130.03316.32
5.4.10.0270.04316.25

preferences:
48.89 ms | 400 KiB | 5 Q