3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { foreach ([] as $foo) { yield $foo; } } $iterator = new AppendIterator(); $iterator->append(foo()); 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.0060.01518.52
8.3.50.0170.00221.92
8.3.40.0040.01118.88
8.3.30.0110.00418.79
8.3.20.0040.00420.16
8.3.10.0030.00520.66
8.3.00.0050.00321.85
8.2.180.0120.00318.54
8.2.170.0070.00722.96
8.2.160.0100.00322.16
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00421.05
8.2.120.0040.00426.35
8.2.110.0160.00322.27
8.2.100.0090.00317.72
8.2.90.0110.00017.50
8.2.80.0040.00419.09
8.2.70.0040.00417.63
8.2.60.0050.00317.63
8.2.50.0000.00817.75
8.2.40.0040.00420.52
8.2.30.0080.00019.31
8.2.20.0040.00417.73
8.2.10.0000.00718.06
8.2.00.0050.00317.97
8.1.280.0150.00025.92
8.1.270.0150.00422.13
8.1.260.0030.00528.09
8.1.250.0080.00028.09
8.1.240.0070.00722.40
8.1.230.0110.00020.96
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0060.00318.59
8.1.160.0000.00720.76
8.1.150.0000.00718.82
8.1.140.0030.00519.68
8.1.130.0080.00017.70
8.1.120.0050.00517.36
8.1.110.0000.00817.38
8.1.100.0030.00317.37
8.1.90.0030.00617.42
8.1.80.0030.00317.44
8.1.70.0000.00717.35
8.1.60.0040.00417.49
8.1.50.0040.00417.51
8.1.40.0000.00917.51
8.1.30.0070.00417.49
8.1.20.0040.00417.41
8.1.10.0000.00717.61
8.1.00.0000.00717.38
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0000.00918.45
8.0.270.0020.00517.18
8.0.260.0000.00617.25
8.0.250.0030.00617.05
8.0.240.0000.00717.02
8.0.230.0030.00316.91
8.0.220.0030.00316.87
8.0.210.0000.00716.96
8.0.200.0030.00517.04
8.0.190.0000.00716.95
8.0.180.0050.00317.05
8.0.170.0050.00316.88
8.0.160.0000.00817.02
8.0.150.0000.00716.83
8.0.140.0080.00016.79
8.0.130.0000.00513.41
8.0.120.0040.00416.95
8.0.110.0040.00417.02
8.0.100.0030.00317.00
8.0.90.0030.00516.75
8.0.80.0000.01616.84
8.0.70.0040.00416.84
8.0.60.0000.00716.94
8.0.50.0000.00716.94
8.0.30.0110.01017.07
8.0.20.0070.01217.40
8.0.10.0040.00417.10
8.0.00.0110.00716.85
7.4.330.0000.00516.84
7.4.320.0000.00616.59
7.4.300.0030.00316.59
7.4.290.0030.00316.59
7.4.280.0000.00816.43
7.4.270.0000.00716.61
7.4.260.0100.00016.50
7.4.250.0040.00416.59
7.4.240.0000.00716.49
7.4.230.0080.00016.50
7.4.220.0000.01916.70
7.4.210.0140.00416.58
7.4.200.0030.00416.44
7.4.160.0090.00616.58
7.4.150.0120.01217.40
7.4.140.0110.00717.86
7.4.130.0130.00616.50
7.4.120.0120.00616.57
7.4.110.0100.00716.64
7.4.100.0130.01016.70
7.4.90.0140.00316.55
7.4.80.0100.00719.39
7.4.70.0030.01416.52
7.4.60.0110.00716.44
7.4.50.0130.00316.41
7.4.40.0040.01416.52
7.4.30.0060.01016.39
7.4.00.0090.00614.89
7.3.330.0030.00313.14
7.3.320.0050.00013.43
7.3.310.0050.00216.32
7.3.300.0000.00716.38
7.3.290.0000.00616.38
7.3.280.0090.00716.39
7.3.270.0120.00617.40
7.3.260.0050.01216.64
7.3.250.0140.00616.38
7.3.240.0070.01016.45
7.3.230.0140.00316.46
7.3.210.0140.00416.63
7.3.200.0080.00816.45
7.3.190.0090.00616.57
7.3.180.0030.01316.52
7.3.170.0100.00616.38
7.3.160.0070.01016.39
7.2.330.0030.01516.77
7.2.320.0070.01016.64
7.2.310.0150.00616.81
7.2.300.0070.01016.70
7.2.290.0090.00616.62
7.2.60.0060.00916.94
7.2.00.0210.01119.40
7.1.200.0090.00415.71
7.1.100.0140.01117.92
7.1.70.0040.00417.22
7.1.60.0140.01019.19
7.1.50.0070.01316.55
7.1.00.0030.07722.36
7.0.200.0290.00314.91
7.0.60.0130.03321.84
7.0.50.0070.07717.81
7.0.40.0030.05319.93
7.0.30.0370.04719.99
7.0.20.0330.07719.80
7.0.10.0070.05019.94
7.0.00.0130.07719.94
5.6.280.0070.03021.10
5.6.210.0100.07020.77
5.6.200.0170.06318.19
5.6.190.0100.07720.38
5.6.180.0300.07720.36
5.6.170.1570.05020.16
5.6.160.0070.05020.16
5.6.150.0000.05018.09
5.6.140.0130.07717.99
5.6.130.0100.08318.13
5.6.120.0000.04721.15
5.6.110.0070.08721.02
5.6.100.0030.04321.13
5.6.90.0030.04321.04
5.6.80.0030.05320.42
5.5.350.0270.04720.33
5.5.340.0000.04017.90
5.5.330.0070.05020.20
5.5.320.0300.07720.14
5.5.310.0230.04720.14
5.5.300.0000.04317.95
5.5.290.0230.06017.95
5.5.280.0000.06020.88
5.5.270.0130.07720.76
5.5.260.0070.08720.86
5.5.250.0070.06020.66
5.5.240.0100.07720.23

preferences:
63.03 ms | 401 KiB | 5 Q