3v4l.org

run code in 300+ PHP versions simultaneously
<?php $asd = [4 => [ 'name' => "pictures" ]]; $qwe = [5 => [ 'name' => "files" ]]; $res = []; $res +=$asd;

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.70.0140.00316.75
8.3.60.0100.00718.30
8.3.50.0150.01121.90
8.3.40.0120.00618.72
8.3.30.0110.00318.61
8.3.20.0000.00720.30
8.3.10.0060.00320.45
8.3.00.0040.00420.57
8.2.190.0140.00016.58
8.2.180.0110.00416.75
8.2.170.0100.00722.96
8.2.160.0140.00320.29
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00419.23
8.2.120.0080.00026.35
8.2.110.0130.01021.15
8.2.100.0120.00017.91
8.2.90.0000.00817.63
8.2.80.0080.00017.97
8.2.70.0000.01117.93
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0060.00320.50
8.2.30.0000.00721.25
8.2.20.0040.00417.78
8.2.10.0000.00817.89
8.2.00.0040.00417.95
8.1.280.0070.00725.92
8.1.270.0030.00623.79
8.1.260.0000.00728.09
8.1.250.0050.00228.09
8.1.240.0120.00922.19
8.1.230.0000.01018.99
8.1.220.0030.00517.77
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0000.00722.68
8.1.150.0000.00718.69
8.1.140.0000.00719.49
8.1.130.0000.00717.63
8.1.120.0000.00717.40
8.1.110.0050.00317.28
8.1.100.0000.00717.38
8.1.90.0040.00317.42
8.1.80.0040.00417.29
8.1.70.0040.00417.41
8.1.60.0030.00617.43
8.1.50.0090.00017.43
8.1.40.0030.00517.52
8.1.30.0000.00817.50
8.1.20.0000.00817.62
8.1.10.0070.00017.39
8.1.00.0040.00417.45
8.0.300.0040.00419.77
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0000.00717.18
8.0.260.0070.00017.18
8.0.250.0030.00316.91
8.0.240.0000.00716.78
8.0.230.0070.00016.80
8.0.220.0070.00016.87
8.0.210.0000.00716.87
8.0.200.0030.00316.80
8.0.190.0040.00416.94
8.0.180.0040.00416.86
8.0.170.0050.00216.79
8.0.160.0050.00316.86
8.0.150.0050.00216.79
8.0.140.0040.00416.78
8.0.130.0060.00013.31
8.0.120.0040.00416.75
8.0.110.0040.00416.75
8.0.100.0000.00717.00
8.0.90.0070.00016.82
8.0.80.0140.00016.83
8.0.70.0000.00716.91
8.0.60.0040.00416.72
8.0.50.0030.00516.91
8.0.30.0090.00716.91
8.0.20.0100.00917.40
8.0.10.0050.00317.11
8.0.00.0100.00816.74
7.4.330.0000.00516.85
7.4.320.0000.00616.43
7.4.300.0060.00316.51
7.4.290.0040.00416.41
7.4.280.0050.00216.51
7.4.270.0030.00316.43
7.4.260.0030.00316.51
7.4.250.0040.00416.46
7.4.240.0000.00716.55
7.4.230.0000.00716.22
7.4.220.0090.00916.49
7.4.210.0050.00916.45
7.4.200.0000.00716.37
7.4.160.0120.00316.27
7.4.150.0130.00617.40
7.4.140.0080.01017.86
7.4.130.0060.01316.47
7.4.120.0140.00216.42
7.4.110.0070.01316.36
7.4.100.0070.01016.41
7.4.90.0090.00916.41
7.4.80.0090.01219.39
7.4.70.0140.00716.38
7.4.60.0080.00816.28
7.4.50.0060.00916.18
7.4.40.0100.00616.29
7.4.30.0040.01516.21
7.4.10.0060.00914.77
7.4.00.0080.00914.91
7.3.330.0030.00312.99
7.3.320.0030.00312.92
7.3.310.0050.00216.05
7.3.300.0050.00216.23
7.3.290.0030.00316.22
7.3.280.0120.00616.17
7.3.270.0090.00917.40
7.3.260.0090.00916.50
7.3.250.0090.00716.38
7.3.240.0080.00916.38
7.3.230.0100.01016.39
7.3.210.0070.01016.46
7.3.200.0130.00316.57
7.3.190.0030.01516.27
7.3.180.0100.00716.54
7.3.170.0160.00016.28
7.3.160.0080.00816.15
7.3.130.0030.01514.66
7.3.120.0110.00514.80
7.3.110.0030.01414.73
7.3.100.0060.01014.55
7.3.90.0060.00714.73
7.3.80.0050.00514.95
7.3.70.0050.00814.76
7.3.60.0050.00714.75
7.3.50.0060.00514.69
7.3.40.0050.00614.58
7.3.30.0020.01014.64
7.3.20.0050.00816.62
7.3.10.0060.01016.53
7.3.00.0050.00816.64
7.2.330.0100.00916.11
7.2.320.0030.01716.48
7.2.310.0100.00616.39
7.2.300.0060.01516.48
7.2.290.0090.00616.54
7.2.260.0110.00614.89
7.2.250.0080.00914.63
7.2.240.0110.00514.83
7.2.230.0080.00814.80
7.2.220.0070.00914.70
7.2.210.0050.00814.75
7.2.200.0030.00914.85
7.2.190.0060.00914.62
7.2.180.0080.00614.97
7.2.170.0020.00814.80
7.2.160.0070.00714.85
7.2.150.0020.01016.60
7.2.140.0040.00916.52
7.2.130.0040.00916.70
7.2.120.0060.00616.64
7.2.110.0000.01416.69
7.2.100.0030.01216.66
7.2.90.0090.00716.67
7.2.80.0050.00716.69
7.2.70.0070.00716.75
7.2.60.0030.01016.75
7.2.50.0060.00716.74
7.2.40.0080.00716.71
7.2.30.0050.00916.76
7.2.20.0030.01016.72
7.2.10.0060.01016.80
7.2.00.0060.00717.50
7.1.330.0070.00615.70
7.1.320.0080.00615.44
7.1.310.0010.01115.77
7.1.300.0040.00615.71
7.1.290.0030.00815.61
7.1.280.0050.00715.70
7.1.270.0020.01215.48
7.1.260.0070.00615.60
7.1.250.0090.00615.39
7.1.240.0060.00615.41
7.1.230.0050.00915.52
7.1.220.0050.00515.49
7.1.210.0070.00715.41
7.1.200.0040.00715.59
7.1.190.0080.00515.68
7.1.180.0080.00515.56
7.1.170.0030.00915.41
7.1.160.0070.00515.70
7.1.150.0060.00515.53
7.1.140.0090.00515.63
7.1.130.0050.01015.68
7.1.120.0050.01015.49
7.1.110.0050.00915.51
7.1.100.0080.00216.33
7.1.90.0120.00015.47
7.1.80.0020.00915.49
7.1.70.0040.00515.91
7.1.60.0070.00916.84
7.1.50.0000.01115.47
7.1.40.0080.00415.53
7.1.30.0060.00615.55
7.1.20.0070.00715.60
7.1.10.0060.00715.56
7.1.00.0080.02817.90
7.0.330.0040.00615.14
7.0.320.0090.00315.26
7.0.310.0070.00815.26
7.0.300.0030.01215.27
7.0.290.0030.01215.08
7.0.280.0100.00115.21
7.0.270.0030.00715.29
7.0.260.0040.00815.02
7.0.250.0040.01015.23
7.0.240.0060.00615.21
7.0.230.0040.00715.24
7.0.220.0030.00515.14
7.0.210.0080.00615.15
7.0.200.0060.00815.77
7.0.190.0020.00815.24
7.0.180.0080.00315.44
7.0.170.0080.00515.38
7.0.160.0040.00915.19
7.0.150.0090.00315.27
7.0.140.0070.00715.14
7.0.130.0020.00915.35
7.0.120.0030.00715.25
7.0.110.0100.00215.36
7.0.100.0050.00915.28
7.0.90.0050.00715.27
7.0.80.0070.00615.23
7.0.70.0040.01015.22
7.0.60.0120.03116.89
7.0.50.0070.01616.29
7.0.40.0080.02615.58
7.0.30.0120.01915.69
7.0.20.0140.02815.48
7.0.10.0020.03515.45
7.0.00.0100.02815.56
5.6.400.0070.00414.35
5.6.390.0060.00614.16
5.6.380.0060.00514.32
5.6.370.0040.01214.45
5.6.360.0040.00814.20
5.6.350.0070.00814.21
5.6.340.0090.00514.37
5.6.330.0090.00514.32
5.6.320.0050.00814.23
5.6.310.0030.01014.13
5.6.300.0100.00414.48
5.6.290.0010.01114.15
5.6.280.0040.02816.41
5.6.270.0040.00514.23
5.6.260.0030.00914.34
5.6.250.0050.00814.19
5.6.240.0050.00614.18
5.6.230.0050.00914.28
5.6.220.0060.00514.04
5.6.210.0060.01816.39
5.6.200.0060.02415.63
5.6.190.0090.02316.43
5.6.180.0120.02816.38
5.6.170.0100.02016.17
5.6.160.0070.02216.22
5.6.150.0080.03115.43
5.6.140.0070.02615.73
5.6.130.0080.02415.58
5.6.120.0060.02116.57
5.6.110.0070.03016.41
5.6.100.0040.03516.43
5.6.90.0020.03016.26
5.6.80.0050.01616.09
5.6.70.0050.00713.91
5.6.60.0040.01214.09
5.6.50.0070.00514.20
5.6.40.0000.01114.24
5.6.30.0030.01014.05
5.6.20.0030.00914.26
5.6.10.0040.00714.24
5.6.00.0070.00814.10
5.5.380.0050.00814.02
5.5.370.0050.00914.23
5.5.360.0050.00714.27
5.5.350.1020.01416.13
5.5.340.0040.02215.62
5.5.330.0050.03416.13
5.5.320.0120.01916.14
5.5.310.0100.03316.26
5.5.300.0070.02115.48
5.5.290.0030.02315.36
5.5.280.0080.02916.32
5.5.270.0060.02516.43
5.5.260.0070.02016.35
5.5.250.0060.03316.15
5.5.240.1250.01616.08
5.5.230.0060.00614.00
5.5.220.0050.00713.95
5.5.210.0040.00714.10
5.5.200.0080.00614.26
5.5.190.0080.00513.85
5.5.180.0040.00614.02
5.5.170.0070.00514.06
5.5.160.0020.01113.93
5.5.150.0050.01014.09
5.5.140.0050.00813.81
5.5.130.0020.01014.18
5.5.120.0000.01214.24
5.5.110.0070.00614.06
5.5.100.0070.00614.29
5.5.90.0100.00514.07
5.5.80.0020.01214.10
5.5.70.0080.00513.85
5.5.60.0030.01114.11
5.5.50.0090.00613.98
5.5.40.0030.01213.92
5.5.30.0030.01014.16
5.5.20.0090.00414.04
5.5.10.0030.00813.99
5.5.00.0000.01214.10

preferences:
55.26 ms | 401 KiB | 5 Q