3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = array( array( 'type' => 'desktop', 'visits' => 10 ), array( 'type' => 'desktop', 'visits' => 10 ), array( 'type' => 'desktop', 'visits' => 10 ), array( 'type' => 'desktop', 'visits' => 10 ) ); $sum = array_map('array_sum',array_column($items,'visits')); var_dump($sum);

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.40.0140.00718.88
8.3.30.0140.00020.14
8.3.20.0000.00720.28
8.3.10.0080.00021.93
8.3.00.0040.00422.34
8.2.170.0110.00422.96
8.2.160.0030.01022.13
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00920.69
8.2.110.0000.00922.26
8.2.100.0120.00318.09
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0040.00417.90
8.2.20.0030.00517.70
8.2.10.0080.00017.74
8.2.00.0040.00417.74
8.1.270.0090.00023.99
8.1.260.0070.01126.35
8.1.250.0040.00428.09
8.1.240.0030.00723.98
8.1.230.0040.00819.04
8.1.220.0020.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00817.35
8.1.190.0040.00417.53
8.1.180.0000.00920.36
8.1.170.0040.00418.59
8.1.160.0070.00022.12
8.1.150.0030.00618.59
8.1.140.0000.00717.35
8.1.130.0000.00717.87
8.1.120.0040.00417.27
8.1.110.0050.00217.44
8.1.100.0020.00517.40
8.1.90.0000.00717.29
8.1.80.0070.00017.29
8.1.70.0040.00417.34
8.1.60.0000.00917.55
8.1.50.0040.00417.42
8.1.40.0000.00717.54
8.1.30.0040.00417.65
8.1.20.0030.00617.51
8.1.10.0000.00717.57
8.1.00.0040.00817.45
8.0.300.0040.00418.77
8.0.290.0030.00317.05
8.0.280.0070.00018.31
8.0.270.0030.00317.22
8.0.260.0040.00416.68
8.0.250.0040.00216.98
8.0.240.0120.00016.96
8.0.230.0020.00517.01
8.0.220.0040.00416.86
8.0.210.0040.00416.87
8.0.200.0030.00316.84
8.0.190.0050.00216.85
8.0.180.0000.00816.92
8.0.170.0040.00416.90
8.0.160.0000.00716.71
8.0.150.0020.00516.86
8.0.140.0020.00516.83
8.0.130.0000.00713.29
8.0.120.0050.00316.83
8.0.110.0040.00416.79
8.0.100.0030.00616.85
8.0.90.0000.00916.76
8.0.80.0030.01216.86
8.0.70.0000.00716.88
8.0.60.0030.00316.81
8.0.50.0000.00716.69
8.0.30.0070.01416.97
8.0.20.0090.01117.40
8.0.10.0000.00816.99
8.0.00.0080.01116.75
7.4.330.0000.00514.87
7.4.320.0030.00316.42
7.4.300.0000.00616.57
7.4.290.0030.00316.39
7.4.280.0000.00716.52
7.4.270.0030.00416.56
7.4.260.0030.00313.19
7.4.250.0050.00316.38
7.4.240.0020.00616.48
7.4.230.0030.00316.56
7.4.220.0130.01016.38
7.4.210.0060.01116.43
7.4.200.0040.00416.32
7.4.190.0040.00416.31
7.4.160.0070.01316.54
7.4.150.0070.01117.40
7.4.140.0120.00517.86
7.4.130.0080.00816.39
7.4.120.0100.00816.43
7.4.110.0120.00616.42
7.4.100.0140.01116.54
7.4.90.0140.00716.56
7.4.80.0100.00719.39
7.4.70.0100.00516.22
7.4.60.0100.00716.61
7.4.50.0000.00716.68
7.4.40.0090.00922.77
7.4.30.0080.01616.29
7.4.10.0100.01015.58
7.4.00.0080.00815.40
7.3.330.0050.00013.13
7.3.320.0030.00312.91
7.3.310.0000.00716.04
7.3.300.0000.00716.09
7.3.290.0090.00616.17
7.3.280.0090.00716.21
7.3.270.0100.00717.40
7.3.260.0130.00616.36
7.3.250.0110.00716.23
7.3.240.0130.00316.43
7.3.230.0160.00016.39
7.3.210.0090.00916.42
7.3.200.0130.00919.39
7.3.190.0100.00716.22
7.3.180.0080.01416.14
7.3.170.0040.01316.27
7.3.160.0070.01016.14
7.3.130.0080.01115.46
7.3.120.0050.01315.18
7.3.110.0050.00915.42
7.3.100.0060.01115.40
7.3.90.0020.01015.44
7.3.80.0060.00915.42
7.3.70.0020.00815.44
7.3.60.0070.00715.36
7.3.50.0030.01015.34
7.3.40.0030.01115.42
7.3.30.0050.00915.49
7.3.20.0050.00717.30
7.3.10.0080.00817.37
7.3.00.0080.00517.22
7.2.330.0140.00316.29
7.2.320.0060.01016.68
7.2.310.0040.01416.29
7.2.300.0110.00916.34
7.2.290.0040.01216.49
7.2.260.0100.01015.46
7.2.250.0110.00715.55
7.2.240.0030.01115.47
7.2.230.0100.00515.83
7.2.220.0010.01415.85
7.2.210.0070.00715.38
7.2.200.0070.00615.55
7.2.190.0020.01215.46
7.2.180.0050.00915.78
7.2.170.0030.01115.66
7.2.160.0030.01015.52
7.2.150.0060.00917.38
7.2.140.0080.00817.50
7.2.130.0050.00817.58
7.2.120.0030.00817.49
7.2.110.0110.00617.19
7.2.100.0080.00517.48
7.2.90.0100.00417.44
7.2.80.0050.00717.35
7.2.70.0030.01017.32
7.2.60.0080.00717.22
7.2.50.0090.00317.57
7.2.40.0100.00517.64
7.2.30.0070.01117.58
7.2.20.0030.01417.52
7.2.10.0090.00717.61
7.2.00.0050.01117.51
7.1.330.0050.01016.37
7.1.320.0090.00716.48
7.1.310.0030.00716.50
7.1.300.0070.00616.59
7.1.290.0080.00816.60
7.1.280.0060.01016.25
7.1.270.0050.00916.46
7.1.260.0070.01016.56
7.1.250.0020.00916.43
7.1.240.0100.00716.43
7.1.230.0080.00716.25
7.1.220.0100.00216.34
7.1.210.0000.01216.46
7.1.200.0070.00616.15
7.1.190.0000.01316.39
7.1.180.0070.00616.32
7.1.170.0040.00716.46
7.1.160.0070.00516.49
7.1.150.0060.00716.57
7.1.140.0040.01116.37
7.1.130.0090.00316.49
7.1.120.0060.00616.55
7.1.110.0030.01216.53
7.1.100.0070.00716.60
7.1.90.0050.00816.58
7.1.80.0080.00716.38
7.1.70.0060.00516.67
7.1.60.0050.00917.43
7.1.50.0100.00616.61
7.1.40.0050.01116.66
7.1.30.0050.01016.36
7.1.20.0060.00616.33
7.1.10.0090.00216.48
7.1.00.0060.02718.33
7.0.330.0050.01016.12
7.0.320.0050.00816.05
7.0.310.0050.01016.05
7.0.300.0050.00616.17
7.0.290.0060.00316.09
7.0.280.0060.00516.01
7.0.270.0090.00316.15
7.0.260.0090.00415.91
7.0.250.0030.01016.09
7.0.240.0050.00916.19
7.0.230.0100.00716.19
7.0.220.0080.00316.22
7.0.210.0050.00815.98
7.0.200.0040.00816.24
7.0.190.0050.00816.10
7.0.180.0050.00816.06
7.0.170.0110.00516.06
7.0.160.0050.01016.00
7.0.150.0060.00716.01
7.0.140.0100.02418.01
7.0.130.0070.00516.14
7.0.120.0050.01016.06
7.0.110.0010.03417.40
7.0.100.0050.02017.46
7.0.90.0040.03417.50
7.0.80.0080.02717.40
7.0.70.0060.03217.36
7.0.60.0110.02617.50
7.0.50.0080.03217.33
7.0.40.0070.03215.92
7.0.30.0020.03116.02
7.0.20.0080.03015.94
7.0.10.0060.02815.89
7.0.00.0040.02015.93
5.6.400.0070.00714.85
5.6.390.0040.00915.07
5.6.380.0070.00515.02
5.6.370.0070.00814.71
5.6.360.0040.01115.13
5.6.350.0090.00214.98
5.6.340.0100.00515.13
5.6.330.0080.00414.96
5.6.320.0080.00515.02
5.6.310.0100.00514.74
5.6.300.0090.00615.10
5.6.290.0050.00815.04
5.6.280.0030.03117.12
5.6.270.0030.01014.90
5.6.260.0040.02616.88
5.6.250.0030.03516.97
5.6.240.0050.02816.92
5.6.230.0060.02916.79
5.6.220.0080.02716.86
5.6.210.0030.02816.86
5.6.200.0030.03716.95
5.6.190.0090.01616.96
5.6.180.0090.02816.97
5.6.170.0040.03316.91
5.6.160.0040.01816.81
5.6.150.0060.02016.87
5.6.140.0030.02616.86
5.6.130.0050.02916.80
5.6.120.0100.02016.76
5.6.110.0060.03016.84
5.6.100.0040.02216.72
5.6.90.0030.03516.77
5.6.80.0090.02516.50
5.6.70.0050.03216.63
5.6.60.0060.03016.56
5.6.50.0070.02316.61
5.6.40.0070.01816.58
5.6.30.0050.03216.48
5.6.20.0090.02716.50
5.6.10.0050.03216.56
5.6.00.0060.03016.64
5.5.380.0060.03115.87
5.5.370.0050.02915.83
5.5.360.0110.02615.91
5.5.350.0040.01815.65
5.5.340.0050.01715.87
5.5.330.0030.01715.89
5.5.320.0080.02415.99
5.5.310.0030.01915.94
5.5.300.0070.02516.03
5.5.290.0060.03316.13
5.5.280.0100.01816.03
5.5.270.0060.02115.93
5.5.260.0110.02415.86
5.5.250.0050.01515.86
5.5.240.0040.01815.86
5.5.230.0050.01815.68
5.5.220.0030.03115.63
5.5.210.0040.02815.64
5.5.200.0060.02915.66
5.5.190.0030.01915.65
5.5.180.0070.01815.75
5.5.170.0080.00914.78
5.5.160.0060.02315.61
5.5.150.0070.02415.72
5.5.140.0090.02515.62
5.5.130.0100.02415.69
5.5.120.0070.01815.69
5.5.110.0070.02015.68
5.5.100.0070.02815.51
5.5.90.0030.02515.76
5.5.80.0060.02015.68
5.5.70.0090.03015.91
5.5.60.0030.03115.52
5.5.50.0060.03015.59
5.5.40.0110.02115.67
5.5.30.0070.02915.79
5.5.20.0060.03015.58
5.5.10.0090.01415.58
5.5.00.0090.01715.58
5.4.450.0080.02714.41
5.4.440.0040.03314.34
5.4.430.0040.02214.24
5.4.420.0060.01814.41
5.4.410.0030.01814.32
5.4.400.0030.02914.23
5.4.390.0060.02414.19
5.4.380.0070.01414.23
5.4.370.0050.01514.20
5.4.360.0050.03014.09
5.4.350.0040.02914.18
5.4.340.0040.01814.13
5.4.330.0050.01011.79
5.4.320.0070.02614.25
5.4.310.0030.01814.29
5.4.300.0080.02714.26
5.4.290.0050.03014.20
5.4.280.0050.02114.15
5.4.270.0050.02714.16
5.4.260.0030.03114.12
5.4.250.0020.03014.18
5.4.240.0070.02414.12
5.4.230.0020.02514.30
5.4.220.0050.02614.23
5.4.210.0050.02814.18
5.4.200.0030.02114.12
5.4.190.0080.02314.28
5.4.180.0060.02914.18
5.4.170.0060.02814.19
5.4.160.0020.03114.19
5.4.150.0040.02914.18
5.4.140.0070.02413.26
5.4.130.0020.02713.40
5.4.120.0000.02013.31
5.4.110.0070.02713.30
5.4.100.0020.03213.24
5.4.90.0100.01813.24
5.4.80.0060.01613.28
5.4.70.0020.02913.36
5.4.60.0030.02913.28
5.4.50.0070.03013.28
5.4.40.0070.02613.35
5.4.30.0020.02113.29
5.4.20.0040.01513.36
5.4.10.0060.02513.29
5.4.00.0020.03213.12
5.3.290.0030.07714.45
5.3.280.0100.07014.52
5.3.270.0030.04714.53
5.3.260.0070.03714.48
5.3.250.0030.04314.46
5.3.240.0100.07014.67
5.3.230.0100.07014.59
5.3.220.0000.04314.66
5.3.210.0030.04314.66
5.3.200.0030.03714.58
5.3.190.0000.04314.66
5.3.180.0070.07014.48
5.3.170.0100.06714.57
5.3.160.0000.05014.39
5.3.150.0100.07014.43
5.3.140.0070.06314.42
5.3.130.0100.07714.48
5.3.120.0030.05014.52
5.3.110.0130.06314.62
5.3.100.0070.08013.87
5.3.90.0130.06713.92
5.3.80.0030.04313.95
5.3.70.0030.07314.09
5.3.60.0170.03714.03
5.3.50.0070.04713.86
5.3.40.0070.07013.84
5.3.30.0130.07313.83
5.3.20.0130.06013.61
5.3.10.0130.06713.44
5.3.00.0070.05713.61
5.2.170.0030.04711.91
5.2.160.0000.04711.91
5.2.150.0130.06311.91
5.2.140.0070.06011.91
5.2.130.0030.06711.91
5.2.120.0100.06011.91
5.2.110.0030.04711.91
5.2.100.0070.06011.91
5.2.90.0100.05711.91
5.2.80.0030.04311.91
5.2.70.0070.04311.91
5.2.60.0030.05311.91
5.2.50.0030.04711.91
5.2.40.0030.05311.91
5.2.30.0030.06311.91
5.2.20.0130.05311.91
5.2.10.0030.06011.91
5.2.00.0030.06011.91
5.1.60.0030.02711.91
5.1.50.0100.02711.91
5.1.40.0100.03011.91
5.1.30.0070.03711.91
5.1.20.0000.03711.91
5.1.10.0030.02711.91
5.1.00.0000.03311.91
5.0.50.0030.03311.91
5.0.40.0000.02011.91
5.0.30.0030.03311.91
5.0.20.0230.01011.91
5.0.10.0070.02011.91
5.0.00.0030.05311.91
4.4.90.0030.03311.91
4.4.80.0000.03711.91
4.4.70.0030.01711.91
4.4.60.0100.03011.91
4.4.50.0070.02711.91
4.4.40.0030.04311.91
4.4.30.0000.03711.91
4.4.20.0000.01711.91
4.4.10.0000.02011.91
4.4.00.0000.02711.91
4.3.110.0030.01711.91
4.3.100.0070.01011.91
4.3.90.0070.02311.91
4.3.80.0000.04711.91
4.3.70.0030.02311.91
4.3.60.0030.03311.91
4.3.50.0030.02311.91
4.3.40.0030.05011.91
4.3.30.0000.03711.91
4.3.20.0030.03311.91
4.3.10.0000.01311.91
4.3.00.0000.02311.91

preferences:
39.95 ms | 400 KiB | 5 Q