3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { foreach ([] as $foo) { yield $foo; } } $iterator = new AppendIterator(); $iterator->append(foo()); var_dump(iterator_to_array($iterator));

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.0250.00623.46
8.3.50.0140.00321.92
8.3.40.0140.00018.82
8.3.30.0110.00418.84
8.3.20.0040.00420.29
8.3.10.0040.00420.56
8.3.00.0040.00421.73
8.2.180.0090.00616.50
8.2.170.0120.00622.96
8.2.160.0160.00322.18
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00819.31
8.2.120.0040.00426.35
8.2.110.0180.00019.30
8.2.100.0090.00317.91
8.2.90.0080.00019.17
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0030.00618.00
8.2.50.0030.00618.09
8.2.40.0000.00820.57
8.2.30.0070.00019.37
8.2.20.0040.00417.62
8.2.10.0000.00717.97
8.2.00.0030.00518.11
8.1.280.0100.00725.92
8.1.270.0060.00322.11
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00322.23
8.1.230.0000.01118.95
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.47
8.1.190.0080.00017.13
8.1.180.0080.00018.10
8.1.170.0060.00318.63
8.1.160.0000.00720.82
8.1.150.0040.00418.75
8.1.140.0040.00419.48
8.1.130.0000.00717.68
8.1.120.0000.00717.35
8.1.110.0030.00517.34
8.1.100.0040.00417.34
8.1.90.0040.00417.43
8.1.80.0040.00417.39
8.1.70.0050.00217.38
8.1.60.0030.00617.42
8.1.50.0000.00817.39
8.1.40.0040.00417.51
8.1.30.0000.00817.69
8.1.20.0040.00417.39
8.1.10.0050.00317.56
8.1.00.0070.00317.48
8.0.300.0040.00421.63
8.0.290.0050.00316.75
8.0.280.0000.00718.36
8.0.270.0000.00717.18
8.0.260.0030.00317.24
8.0.250.0000.00617.03
8.0.240.0000.00716.99
8.0.230.0000.00817.06
8.0.220.0000.00816.99
8.0.210.0080.00017.01
8.0.200.0030.00316.91
8.0.190.0070.00016.86
8.0.180.0000.00716.96
8.0.170.0080.00017.02
8.0.160.0040.00416.84
8.0.150.0000.00716.94
8.0.140.0040.00416.88
8.0.130.0030.00313.34
8.0.120.0050.00216.95
8.0.110.0000.00716.84
8.0.100.0040.00416.78
8.0.90.0000.00717.07
8.0.80.0130.00616.90
8.0.70.0080.00017.02
8.0.60.0000.00716.84
8.0.50.0040.00416.79
8.0.30.0060.01217.00
8.0.20.0150.00817.40
8.0.10.0020.00516.96
8.0.00.0110.00916.93
7.4.330.0020.00216.83
7.4.320.0070.00016.43
7.4.300.0060.00016.40
7.4.290.0070.00316.52
7.4.280.0040.00416.59
7.4.270.0050.00316.43
7.4.260.0060.00316.58
7.4.250.0030.00416.46
7.4.240.0000.00716.54
7.4.230.0030.00316.39
7.4.220.0110.01216.47
7.4.210.0150.00616.57
7.4.200.0080.00016.58
7.4.160.0070.00716.54
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0170.00416.51
7.4.120.0070.01016.57
7.4.110.0100.00716.65
7.4.100.0120.01316.48
7.4.90.0140.00316.59
7.4.80.0100.00719.39
7.4.70.0060.01216.48
7.4.60.0040.01616.50
7.4.50.0070.00716.62
7.4.40.0100.00716.69
7.4.30.0030.01216.56
7.4.10.0030.01515.19
7.4.00.0060.01115.05
7.3.330.0000.00513.23
7.3.320.0030.00313.44
7.3.310.0000.00716.26
7.3.300.0040.00416.41
7.3.290.0060.01016.39
7.3.280.0070.00816.33
7.3.270.0100.00717.40
7.3.260.0180.00316.38
7.3.250.0090.00716.54
7.3.240.0110.00716.35
7.3.230.0070.01016.39
7.3.210.0080.00816.32
7.3.200.0100.00716.61
7.3.190.0120.00416.38
7.3.180.0070.01016.47
7.3.170.0060.01016.48
7.3.160.0070.01716.65
7.3.130.0070.01014.85
7.3.120.0110.00714.88
7.3.110.0120.00814.88
7.3.100.0040.00714.88
7.3.90.0040.01114.73
7.3.80.0080.00414.54
7.3.70.0040.00814.90
7.3.60.0040.00814.82
7.3.50.0000.01014.76
7.3.40.0000.00914.63
7.3.30.0030.00514.78
7.3.20.0070.01016.57
7.3.10.0030.00716.58
7.3.00.0090.00616.67
7.2.330.0090.00916.61
7.2.320.0030.01316.86
7.2.310.0170.00316.43
7.2.300.0040.01216.60
7.2.290.0030.01316.66
7.2.260.0110.00314.85
7.2.250.0100.01014.74
7.2.240.0060.00614.99
7.2.230.0040.01515.34
7.2.220.0030.01015.20
7.2.210.0000.01415.01
7.2.200.0000.00915.04
7.2.190.0060.00615.30
7.2.180.0070.00315.16
7.2.170.0070.00414.95
7.2.160.0000.00914.81
7.2.150.0060.00617.09
7.2.140.0060.00916.86
7.2.130.0050.01017.16
7.2.120.0050.00917.01
7.2.110.0040.00716.83
7.2.100.0040.00816.87
7.2.90.0090.00516.88
7.2.80.0020.01116.88
7.2.70.0050.01016.80
7.2.60.0020.01316.85
7.2.50.0070.00517.08
7.2.40.0060.00916.76
7.2.30.0030.01316.72
7.2.20.0100.00616.83
7.2.10.0070.00716.78
7.2.00.0300.00817.04
7.1.330.0040.00415.77
7.1.320.0070.01015.77
7.1.310.0040.00915.72
7.1.300.0090.00315.71
7.1.290.0080.00315.70
7.1.280.0060.00615.76
7.1.270.0000.01315.85
7.1.260.0090.00915.65
7.1.250.0050.00715.85
7.1.240.0060.00315.73
7.1.230.0040.01115.63
7.1.220.0000.01215.75
7.1.210.0070.00715.48
7.1.200.0070.00715.64
7.1.190.0100.00315.60
7.1.180.0090.00015.71
7.1.170.0000.01315.43
7.1.160.0060.00615.80
7.1.150.0030.00715.47
7.1.140.0060.00615.82
7.1.130.0030.01015.61
7.1.120.0000.00915.77
7.1.110.0030.00915.81
7.1.100.0090.00617.03
7.1.90.0040.01115.54
7.1.80.0030.01015.87
7.1.70.0010.00816.39
7.1.60.0070.01217.58
7.1.50.0050.01016.34
7.1.40.0000.00915.64
7.1.30.0070.00315.64
7.1.20.0000.01315.76
7.1.10.0080.00015.83
7.1.00.0030.04419.17
7.0.330.0080.00715.52
7.0.320.0060.00915.22
7.0.310.0030.01315.37
7.0.300.0040.00715.34
7.0.290.0080.00415.41
7.0.280.0080.00515.41
7.0.270.0080.00815.34
7.0.260.0060.00615.21
7.0.250.0100.00315.47
7.0.240.0000.01515.57
7.0.230.0040.00815.59
7.0.220.0000.00915.39
7.0.210.0030.00615.47
7.0.200.0030.01115.24
7.0.190.0060.00915.51
7.0.180.0030.00515.47
7.0.170.0120.00015.59
7.0.160.0030.00715.48
7.0.150.0060.00915.50
7.0.140.0060.00915.13
7.0.130.0030.00515.52
7.0.120.0040.00715.15
7.0.110.0060.00615.26
7.0.100.0030.01215.35
7.0.90.0070.00315.46
7.0.80.0110.00415.36
7.0.70.0060.00615.33
7.0.60.0080.04118.50
7.0.50.0000.02716.69
7.0.40.0110.03916.61
7.0.30.0220.02016.82
7.0.20.0140.01621.30
7.0.10.0200.01916.47
7.0.00.0050.04116.70
5.6.400.0070.01014.52
5.6.390.0060.01014.41
5.6.380.0030.00614.39
5.6.370.0000.01214.47
5.6.360.0040.01114.55
5.6.350.0040.00414.46
5.6.340.0070.00314.22
5.6.330.0000.01314.27
5.6.320.0110.00414.39
5.6.310.0030.00814.61
5.6.300.0060.00614.29
5.6.290.0100.00314.27
5.6.280.0070.02817.67
5.6.270.0030.00714.23
5.6.260.0030.00914.27
5.6.250.0080.00414.27
5.6.240.0090.00414.34
5.6.230.0050.00314.40
5.6.220.0060.00914.59
5.6.210.0040.04617.40
5.6.200.0020.02716.37
5.6.190.0050.05217.29
5.6.180.0190.03817.28
5.6.170.0100.02317.53
5.6.160.0050.03017.37
5.6.150.0120.03516.16
5.6.140.0070.02016.20
5.6.130.0020.04216.15
5.6.120.0060.04417.71
5.6.110.0070.04217.78
5.6.100.0100.03817.59
5.6.90.0080.04217.83
5.6.80.0100.04117.20
5.6.70.0000.01414.17
5.6.60.0070.00314.38
5.6.50.0080.00414.08
5.6.40.0070.00314.38
5.6.30.0030.00714.52
5.6.20.0030.00614.21
5.6.10.0000.00814.14
5.6.00.0110.00314.24
5.5.380.0080.00514.18
5.5.370.0100.00613.98
5.5.360.0070.00313.93
5.5.350.0200.03317.34
5.5.340.0080.02316.13
5.5.330.0020.02717.22
5.5.320.0110.03117.22
5.5.310.0140.02117.48
5.5.300.0080.01816.07
5.5.290.0080.03916.29
5.5.280.0060.02117.57
5.5.270.0050.04317.57
5.5.260.0060.02617.43
5.5.250.0090.04117.52
5.5.240.0070.04217.09
5.5.230.0000.01014.17
5.5.220.0090.00014.13
5.5.210.0070.00214.35
5.5.200.0070.00314.12
5.5.190.0040.00814.31
5.5.180.0090.00214.25
5.5.170.0080.00313.91
5.5.160.0020.00813.76
5.5.150.0000.00714.12
5.5.140.0040.00414.41
5.5.130.0040.00514.04
5.5.120.0000.01114.11
5.5.110.0040.00414.09
5.5.100.0030.00614.26
5.5.90.0050.00514.23
5.5.80.0030.00614.40
5.5.70.0100.00014.24
5.5.60.0070.00314.33
5.5.50.0000.01014.22
5.5.40.0030.01014.05
5.5.30.0070.00214.46
5.5.20.0050.00514.14
5.5.10.0030.00714.26
5.5.00.0090.00514.36

preferences:
61.64 ms | 401 KiB | 5 Q