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"; $input = (int)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.0140.00718.43
8.3.50.0100.00921.26
8.3.40.0150.00019.02
8.3.30.0040.01118.67
8.3.20.0070.00720.16
8.3.10.0080.00021.91
8.3.00.0060.00317.80
8.2.180.0120.00318.67
8.2.170.0130.00322.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00517.63
8.2.110.0050.00519.24
8.2.100.0040.00817.63
8.2.90.0080.00019.05
8.2.80.0040.00517.97
8.2.70.0090.00017.50
8.2.60.0080.00017.91
8.2.50.0030.00618.07
8.2.40.0040.00419.38
8.2.30.0020.00520.60
8.2.20.0050.00217.68
8.2.10.0040.00418.11
8.2.00.0070.00017.98
8.1.280.0140.00025.92
8.1.270.0110.00423.92
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0060.00323.88
8.1.230.0080.00417.66
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0040.00417.25
8.1.190.0030.00517.23
8.1.180.0070.00018.10
8.1.170.0000.00818.45
8.1.160.0040.00421.92
8.1.150.0000.00918.82
8.1.140.0030.00517.35
8.1.130.0000.00717.50
8.1.120.0050.00217.41
8.1.110.0000.00717.30
8.1.100.0070.00017.38
8.1.90.0000.00717.34
8.1.80.0070.00017.43
8.1.70.0000.00717.39
8.1.60.0070.00017.46
8.1.50.0000.00917.55
8.1.40.0030.00617.39
8.1.30.0030.00617.51
8.1.20.0070.00017.65
8.1.10.0000.00817.55
8.1.00.0040.00417.36
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.42
8.0.270.0030.00317.09
8.0.260.0000.00617.31
8.0.250.0000.00816.91
8.0.240.0030.00316.91
8.0.230.0030.00616.93
8.0.220.0060.00316.78
8.0.210.0040.00416.89
8.0.200.0060.00016.95
8.0.190.0040.00416.91
8.0.180.0030.00616.91
8.0.170.0070.00016.86
8.0.160.0000.00816.90
8.0.150.0000.00716.85
8.0.140.0040.00416.75
8.0.130.0030.00313.32
8.0.120.0000.00716.88
8.0.110.0000.00716.80
8.0.100.0030.00516.75
8.0.90.0080.00016.88
8.0.80.0060.01016.95
8.0.70.0000.00816.95
8.0.60.0000.00716.94
8.0.50.0000.00816.90
8.0.30.0120.00817.11
8.0.20.0060.01317.40
8.0.10.0050.00317.10
8.0.00.0100.00816.80
7.4.330.0020.00215.12
7.4.320.0030.00316.46
7.4.300.0070.00016.59
7.4.290.0000.00716.57
7.4.280.0050.00316.65
7.4.270.0030.00316.60
7.4.260.0000.00716.59
7.4.250.0080.00016.45
7.4.240.0030.00516.45
7.4.230.0030.00316.49
7.4.220.0160.00316.54
7.4.210.0110.00416.46
7.4.200.0030.00316.29
7.4.160.0120.00316.24
7.4.150.0130.00717.40
7.4.140.0120.00917.86
7.4.130.0090.00716.64
7.4.120.0080.00816.40
7.4.110.0130.00316.38
7.4.100.0210.00916.63
7.4.90.0060.01216.38
7.4.80.0120.00619.39
7.4.70.0120.01316.46
7.4.60.0100.01016.50
7.4.50.0030.00616.42
7.4.40.0070.01016.49
7.4.30.0170.00016.64
7.4.00.0100.00714.70
7.3.330.0050.00213.25
7.3.320.0030.00313.15
7.3.310.0040.00416.11
7.3.300.0000.00716.30
7.3.290.0060.00916.30
7.3.280.0090.00916.31
7.3.270.0100.00717.40
7.3.260.0130.00916.44
7.3.250.0090.00916.46
7.3.240.0160.00816.25
7.3.230.0220.00016.39
7.3.210.0100.00716.36
7.3.200.0140.00316.34
7.3.190.0100.00616.43
7.3.180.0070.01016.45
7.3.170.0070.01016.51
7.3.160.0110.00616.41
7.3.10.0070.01016.68
7.3.00.0090.00316.70
7.2.330.0120.00616.83
7.2.320.0060.01216.73
7.2.310.0090.00916.77
7.2.300.0080.00816.55
7.2.290.0000.01716.78
7.2.130.0060.00616.98
7.2.120.0040.01216.95
7.2.110.0130.00516.60
7.2.100.0110.00017.05
7.2.90.0030.01016.69
7.2.80.0030.00916.96
7.2.70.0100.00317.03
7.2.60.0060.00916.80
7.2.50.0000.01317.00
7.2.40.0030.00717.00
7.2.30.0090.00616.97
7.2.20.0080.00416.94
7.2.10.0000.01316.58
7.2.00.0050.00718.00
7.1.250.0100.00315.99
7.1.200.0140.00015.63
7.1.100.0040.00818.04
7.1.70.0090.00017.20
7.1.60.0130.01019.19
7.1.50.0140.01117.05
7.1.00.0000.08022.30
7.0.200.0030.00616.67
7.0.60.0170.02719.77
7.0.50.0100.06717.87
7.0.40.0030.04720.05
7.0.30.0130.05320.23
7.0.20.0200.04320.07
7.0.10.0100.08020.12
7.0.00.0170.07320.22
5.6.280.0030.07020.86
5.6.210.0130.06720.71
5.6.200.0030.08718.29
5.6.190.0030.09020.61
5.6.180.0400.05720.42
5.6.170.0270.03720.48
5.6.160.0000.04320.55
5.6.150.0030.07718.22
5.6.140.0070.04018.24
5.6.130.0200.06318.13
5.6.120.0130.08320.98
5.6.110.0030.04320.98
5.6.100.0100.08021.12
5.6.90.0100.07720.95
5.6.80.0100.03320.49
5.5.350.0300.08020.41
5.5.340.0070.03718.07
5.5.330.0030.05020.57
5.5.320.0170.06720.32
5.5.310.0200.04720.32
5.5.300.0200.07317.99
5.5.290.0100.07717.97
5.5.280.0030.04320.80
5.5.270.0170.06020.79
5.5.260.0200.07020.86
5.5.250.0070.08320.61
5.5.240.0030.07020.24
5.4.450.0130.05319.59
5.4.440.0130.06019.59
5.4.430.0170.04719.48
5.4.420.0130.05019.58
5.4.410.0130.05719.47
5.4.400.0170.04719.29
5.4.390.0170.04719.01
5.4.380.0100.05019.14
5.4.370.0070.05318.84
5.4.360.0070.05719.15
5.4.350.0100.05319.26
5.4.340.0100.05319.26
5.4.320.0200.04719.07
5.4.310.0170.05019.14
5.4.300.0030.07019.25
5.4.290.0300.06019.01
5.4.280.0100.05718.98
5.4.270.0130.05319.37
5.4.260.0070.05719.25
5.4.250.0100.05319.30
5.4.240.0170.04719.14
5.4.230.0130.05019.29
5.4.220.0130.05718.83
5.4.210.0230.04319.36
5.4.200.0100.05319.36
5.4.190.0170.05019.36
5.4.180.0170.05019.27
5.4.170.0200.05718.99
5.4.160.0170.04719.35
5.4.150.0130.05318.85
5.4.140.0130.05016.61
5.4.130.0100.05316.33
5.4.120.0130.05016.45
5.4.110.0170.04716.52
5.4.100.0130.05316.58
5.4.90.0100.05316.39
5.4.80.0100.05016.40
5.4.70.0330.06016.36
5.4.60.0230.04716.16
5.4.50.0230.05016.54
5.4.40.0200.04016.42
5.4.30.0230.04316.51
5.4.20.0230.04316.16
5.4.10.0330.05716.47

preferences:
55.41 ms | 401 KiB | 5 Q