3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [1,2,3,4]; $arr2 = [5,2,4,1]; $arr3 = [2,1,2,2]; $all = [$arr1, $arr2, $arr3]; foreach($all[0] as $key => $v){ $result[$key] = array_sum(array_column($all, $key)); } var_dump($result);

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.4.120.0070.00424.03
8.4.110.0100.01118.59
8.4.100.0090.00718.69
8.4.90.0120.00820.51
8.4.80.0120.00818.68
8.4.70.0070.01220.57
8.4.60.0120.00920.55
8.4.50.0130.00720.34
8.4.40.0100.01019.28
8.4.30.0120.00920.39
8.4.20.0100.01318.93
8.4.10.0130.00319.51
8.3.250.0130.00618.69
8.3.240.0120.00717.06
8.3.230.0120.00716.48
8.3.220.0060.00218.88
8.3.210.0110.00716.75
8.3.200.0070.00216.50
8.3.190.0110.00716.98
8.3.180.0100.00916.33
8.3.170.0000.00917.19
8.3.160.0120.00618.34
8.3.150.0040.00416.77
8.3.140.0090.00018.92
8.3.130.0060.00318.53
8.3.120.0090.00920.87
8.3.110.0040.01520.94
8.3.100.0080.00024.06
8.3.90.0040.01126.77
8.3.80.0090.00016.50
8.3.70.0030.01218.18
8.3.60.0140.00018.30
8.3.50.0120.00717.39
8.3.40.0080.00818.89
8.3.30.0170.00018.66
8.3.20.0080.00020.85
8.3.10.0040.00419.10
8.3.00.0040.00421.91
8.2.290.0140.00520.51
8.2.280.0100.01018.12
8.2.270.0150.00317.19
8.2.260.0060.00318.26
8.2.250.0110.00418.33
8.2.240.0120.00317.07
8.2.230.0000.00922.58
8.2.220.0030.00537.54
8.2.210.0080.00026.77
8.2.200.0100.00016.63
8.2.190.0070.01016.58
8.2.180.0090.00625.92
8.2.170.0040.01122.96
8.2.160.0070.00722.08
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0100.00019.29
8.2.100.0030.00917.91
8.2.90.0040.00418.03
8.2.80.0000.00917.97
8.2.70.0090.00018.05
8.2.60.0060.00318.34
8.2.50.0040.00419.28
8.2.40.0000.00819.30
8.2.30.0070.00020.44
8.2.20.0000.00718.03
8.2.10.0000.00719.00
8.2.00.0030.00319.54
8.1.330.0130.00721.98
8.1.320.0110.00817.92
8.1.310.0040.00418.52
8.1.300.0060.00316.16
8.1.290.0000.00918.88
8.1.280.0120.00325.92
8.1.270.0040.00421.99
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0100.00022.54
8.1.230.0110.00021.03
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.36
8.1.190.0060.00318.96
8.1.180.0060.00318.10
8.1.170.0000.00818.53
8.1.160.0000.00718.89
8.1.150.0030.00518.94
8.1.140.0030.00520.23
8.1.130.0000.00717.32
8.1.120.0000.00717.50
8.1.110.0040.00417.45
8.1.100.0040.00417.47
8.1.90.0030.00617.36
8.1.80.0040.00417.36
8.1.70.0070.00017.45
8.1.60.0000.00817.59
8.1.50.0000.00817.48
8.1.40.0030.00617.53
8.1.30.0000.00817.54
8.1.20.0040.00417.68
8.1.10.0000.00817.60
8.1.00.0030.00617.40
8.0.300.0040.00419.98
8.0.290.0060.00316.63
8.0.280.0050.00318.38
8.0.270.0040.00417.27
8.0.260.0040.00416.82
8.0.250.0030.00316.83
8.0.240.0030.00616.84
8.0.230.0000.00716.85
8.0.220.0000.00716.79
8.0.210.0000.00816.93
8.0.200.0040.00416.95
8.0.190.0030.00516.86
8.0.180.0040.00416.88
8.0.170.0030.00516.79
8.0.160.0040.00416.97
8.0.150.0000.00816.88
8.0.140.0070.00016.88
8.0.130.0070.00013.34
8.0.120.0050.00316.80
8.0.110.0060.00316.84
8.0.100.0040.00416.77
8.0.90.0040.00416.80
8.0.80.0030.01716.89
8.0.70.0000.00716.92
8.0.60.0000.00716.77
8.0.50.0000.00716.84
8.0.30.0070.01016.98
8.0.20.0110.01117.15
8.0.10.0030.00516.93
8.0.00.0060.01316.95
7.4.330.0030.00315.55
7.4.320.0000.00616.51
7.4.300.0030.00316.65
7.4.290.0030.00516.59
7.4.280.0040.00416.62
7.4.270.0040.00416.51
7.4.260.0040.00416.48
7.4.250.0040.00416.51
7.4.240.0030.00516.61
7.4.230.0030.00316.60
7.4.220.0040.00416.40
7.4.210.0090.00716.53
7.4.200.0030.00316.50
7.4.160.0050.01216.46
7.4.140.0030.01517.86
7.4.130.0070.01116.38
7.4.120.0150.00316.39
7.4.110.0100.01416.59
7.4.100.0170.00316.35
7.4.90.0060.01316.34
7.4.80.0090.01319.39
7.4.70.0040.01416.49
7.4.60.0040.01216.56
7.4.50.0070.01016.29
7.4.40.0070.01016.41
7.4.00.0150.00014.82
7.3.330.0000.00513.20
7.3.320.0000.00513.00
7.3.310.0070.00016.39
7.3.300.0040.00416.32
7.3.290.0000.00716.36
7.3.280.0070.01216.31
7.3.260.0080.00916.46
7.3.240.0080.00916.43
7.3.230.0060.01116.50
7.3.210.0090.00916.57
7.3.200.0040.01416.64
7.3.190.0070.01416.34
7.3.180.0080.00816.37
7.3.170.0030.01816.56
7.3.160.0030.01316.41
7.3.50.0040.00914.86
7.3.40.0120.01014.70
7.3.30.0160.01114.40
7.3.20.0130.00514.77
7.3.10.0120.00314.66
7.3.00.0140.00014.86
7.2.330.0120.00616.61
7.2.320.0030.01616.50
7.2.310.0120.00416.34
7.2.300.0050.01616.38
7.2.290.0110.00616.43
7.2.180.0000.01414.76
7.2.170.0100.00315.04
7.2.160.0080.01714.92
7.2.150.0130.00515.05
7.2.140.0110.01415.06
7.2.130.0170.01014.79
7.2.120.0190.01315.00
7.2.110.0150.00514.88
7.2.100.0310.00015.07
7.2.90.0180.00814.96
7.2.80.0160.00615.01
7.2.70.0100.00514.87
7.2.60.0040.01215.01
7.2.50.0090.00614.99
7.2.40.0200.00614.96
7.2.30.0110.00715.05
7.2.20.0150.00914.95
7.2.10.0180.00514.99
7.2.00.0150.00014.73
7.1.280.0130.00314.02
7.1.270.0200.01014.06
7.1.260.0120.00813.83
7.1.250.0160.01214.06

preferences:
29.17 ms | 403 KiB | 5 Q