3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_a = new ArrayIterator(array('a', 'b', 'c')); $array_b = new ArrayIterator(array('d', 'e', 'f')); $iterator = new AppendIterator; $iterator->append($array_a); $iterator2 = new AppendIterator; $iterator2->append($iterator); $iterator2->append($array_b); foreach ($iterator2 as $current) { echo $current; }

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.0100.00316.37
8.3.50.0040.01118.34
8.3.40.0160.00318.75
8.3.30.0070.00718.54
8.3.20.0040.00420.01
8.3.10.0060.00320.78
8.3.00.0000.00718.84
8.2.180.0090.00916.88
8.2.170.0150.00622.96
8.2.160.0030.01019.04
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00419.21
8.2.120.0080.00026.35
8.2.110.0060.00319.21
8.2.100.0070.00419.44
8.2.90.0060.00317.75
8.2.80.0080.00018.61
8.2.70.0000.00817.50
8.2.60.0040.00417.37
8.2.50.0050.00317.55
8.2.40.0050.00319.48
8.2.30.0050.00219.16
8.2.20.0050.00218.06
8.2.10.0040.00418.08
8.2.00.0000.00718.08
8.1.280.0100.00725.92
8.1.270.0040.00423.91
8.1.260.0110.00726.35
8.1.250.0040.00428.09
8.1.240.0140.01019.28
8.1.230.0000.01119.14
8.1.220.0040.00418.56
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0040.00417.35
8.1.180.0090.00022.01
8.1.170.0040.00417.62
8.1.160.0050.00318.83
8.1.150.0040.00420.19
8.1.140.0000.00719.56
8.1.130.0040.00418.80
8.1.120.0000.00717.49
8.1.110.0040.00417.35
8.1.100.0040.00417.43
8.1.90.0040.00417.49
8.1.80.0070.00017.45
8.1.70.0000.00717.42
8.1.60.0040.00417.58
8.1.50.0040.00417.60
8.1.40.0030.00717.52
8.1.30.0080.00017.70
8.1.20.0000.00717.64
8.1.10.0000.00717.59
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.55
8.0.270.0000.00716.82
8.0.260.0000.00718.84
8.0.250.0000.00716.85
8.0.240.0000.00716.86
8.0.230.0080.00016.87
8.0.220.0000.00716.79
8.0.210.0000.00716.86
8.0.200.0000.00916.82
8.0.190.0030.00516.83
8.0.180.0000.00716.75
8.0.170.0070.00016.76
8.0.160.0000.00816.96
8.0.150.0000.00716.91
8.0.140.0000.00816.86
8.0.130.0000.00713.33
8.0.120.0040.00416.79
8.0.110.0000.00916.76
8.0.100.0000.00716.91
8.0.90.0080.00016.90
8.0.80.0000.01516.92
8.0.70.0050.00316.91
8.0.60.0080.00016.79
8.0.50.0000.00717.00
8.0.30.0090.01017.07
8.0.20.0090.01017.42
8.0.10.0000.00917.01
8.0.00.0120.00616.57
7.4.330.0000.00615.55
7.4.320.0060.00016.51
7.4.300.0000.00616.61
7.4.290.0030.00616.42
7.4.280.0040.00416.50
7.4.270.0000.00716.60
7.4.260.0040.00416.39
7.4.250.0000.00716.61
7.4.240.0040.00416.49
7.4.230.0000.00716.58
7.4.220.0090.01616.61
7.4.210.0000.01816.58
7.4.200.0030.00316.40
7.4.160.0100.00716.47
7.4.150.0140.00317.40
7.4.140.0070.01417.86
7.4.130.0090.00916.50
7.4.120.0130.00516.48
7.4.110.0130.00716.32
7.4.100.0120.00616.36
7.4.90.0100.00716.36
7.4.80.0060.01619.39
7.4.70.0060.00916.45
7.4.60.0130.00316.52
7.4.50.0070.00716.58
7.4.40.0130.00316.33
7.4.30.0100.00616.67
7.4.10.0020.01514.88
7.4.00.0080.00814.96
7.3.330.0000.00513.11
7.3.320.0030.00313.15
7.3.310.0030.00316.35
7.3.300.0040.00416.10
7.3.290.0040.01216.26
7.3.280.0060.01116.24
7.3.270.0060.01217.40
7.3.260.0090.00816.30
7.3.250.0120.00716.38
7.3.240.0070.01016.40
7.3.230.0060.00916.46
7.3.210.0060.01216.34
7.3.200.0120.00716.36
7.3.190.0040.01216.45
7.3.180.0080.01316.27
7.3.170.0050.01116.55
7.3.160.0100.00616.52
7.3.130.0080.00914.87
7.3.120.0070.01014.83
7.3.110.0050.01414.89
7.3.100.0070.00814.79
7.3.90.0080.00814.71
7.3.80.0070.00414.73
7.3.70.0050.00914.80
7.3.60.0040.00814.73
7.3.50.0030.00914.64
7.3.40.0090.00514.76
7.3.30.0040.00814.75
7.3.20.0050.00816.69
7.3.10.0080.00616.51
7.3.00.0040.00916.67
7.2.330.0160.00616.57
7.2.320.0100.00716.54
7.2.310.0060.01016.73
7.2.300.0090.00616.58
7.2.290.0080.00816.56
7.2.260.0080.00914.98
7.2.250.0050.01314.86
7.2.240.0070.00915.15
7.2.230.0080.00814.88
7.2.220.0060.00815.10
7.2.210.0040.01014.99
7.2.200.0040.00814.99
7.2.190.0090.00615.01
7.2.180.0020.01014.95
7.2.170.0030.01114.90
7.2.160.0060.00714.97
7.2.150.0080.00516.87
7.2.140.0080.00716.75
7.2.130.0040.00816.94
7.2.120.0090.00416.99
7.2.110.0090.00516.96
7.2.100.0050.00716.86
7.2.90.0060.01016.96
7.2.80.0070.00616.79
7.2.70.0030.01016.72
7.2.60.0040.01016.76
7.2.50.0030.00916.81
7.2.40.0050.00816.97
7.2.30.0030.01116.96
7.2.20.0040.00916.89
7.2.10.0080.00516.92
7.2.00.0040.00816.76
7.1.330.0070.00915.77
7.1.320.0090.00715.95
7.1.310.0070.00715.83
7.1.300.0060.00915.75
7.1.290.0060.00815.79
7.1.280.0060.00715.80
7.1.270.0070.00815.59
7.1.260.0040.00915.84
7.1.250.0050.00915.81
7.1.240.0040.00915.87
7.1.230.0020.01115.77
7.1.220.0040.00715.66
7.1.210.0050.00915.63
7.1.200.0040.00715.71
7.1.190.0040.00715.54
7.1.180.0050.00815.79
7.1.170.0050.00615.75
7.1.160.0030.00715.73
7.1.150.0030.00815.79
7.1.140.0010.01015.64
7.1.130.0040.00915.76
7.1.120.0060.00415.79
7.1.110.0070.00615.77
7.1.100.0010.01215.89
7.1.90.0040.00916.66
7.1.80.0040.00816.56
7.1.70.0050.00816.31
7.1.60.0120.00723.40
7.1.50.0110.00723.36
7.1.40.0090.00923.18
7.1.30.0120.00623.22
7.1.20.0100.00923.13
7.1.10.0070.00716.04
7.1.00.0060.00916.06
7.0.330.0090.00415.32
7.0.320.0050.00815.33
7.0.310.0090.00515.34
7.0.300.0070.00615.31
7.0.290.0040.01015.14
7.0.280.0050.00715.27
7.0.270.0060.00715.33
7.0.260.0050.00615.46
7.0.250.0070.00515.29
7.0.240.0050.00915.40
7.0.230.0060.00816.40
7.0.220.0070.00716.31
7.0.210.0070.00615.83
7.0.200.0070.00715.91
7.0.190.0050.00715.83
7.0.180.0020.01015.66
7.0.170.0040.00815.73
7.0.160.0040.00915.68
7.0.150.0050.00915.63
7.0.140.0060.00815.61
7.0.130.0040.01015.85
7.0.120.0050.00815.81
7.0.110.0060.00915.78
7.0.100.0030.01215.70
7.0.90.0060.00915.84
7.0.80.0050.00715.65
7.0.70.0040.00915.88
7.0.60.0030.01015.73
7.0.50.0040.00815.85
7.0.40.0040.00814.61
7.0.30.0060.00714.75
7.0.20.0050.00814.65
7.0.10.0050.00914.58
7.0.00.0060.00814.69
5.6.400.0060.00514.53
5.6.390.0040.00914.38
5.6.380.0040.00814.01
5.6.370.0050.00814.30
5.6.360.0100.00614.44
5.6.350.0090.00314.42
5.6.340.0060.00614.21
5.6.330.0060.00714.39
5.6.320.0080.00714.38
5.6.310.0040.01014.34
5.6.300.0040.00814.29
5.6.290.0090.00414.22
5.6.280.0030.01014.30
5.6.270.0100.00414.15
5.6.260.0030.01114.27
5.6.250.0080.00714.32
5.6.240.0030.00914.37
5.6.230.0030.01114.26
5.6.220.0070.00814.33
5.6.210.0090.00314.27
5.6.200.0040.01014.24
5.6.190.0060.00914.24
5.6.180.0040.00814.19
5.6.170.0040.01014.33
5.6.160.0040.00814.27
5.6.150.0030.00714.39
5.6.140.0040.01114.24
5.6.130.0080.00514.27
5.6.120.0050.00814.30
5.6.110.0040.00714.21
5.6.100.0070.00814.22
5.6.90.0030.01014.24
5.6.80.0060.00714.11
5.6.70.0060.00614.09
5.6.60.0070.00714.24
5.6.50.0080.00614.11
5.6.40.0060.00714.15
5.6.30.0050.00814.07
5.6.20.0080.00714.18
5.6.10.0070.00714.29
5.6.00.0060.00714.08

preferences:
61.73 ms | 401 KiB | 5 Q