3v4l.org

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

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.4.120.0110.00924.14
8.4.110.0110.00522.45
8.4.100.0110.01017.58
8.4.90.0120.00818.59
8.4.80.0150.00419.38
8.4.70.0110.00417.72
8.4.60.0140.00818.57
8.4.50.0030.00617.71
8.4.40.0150.00618.42
8.4.30.0300.00917.76
8.4.20.0330.01018.50
8.4.10.0310.00917.53
8.3.250.0110.00918.80
8.3.240.0070.00917.22
8.3.230.0130.00616.48
8.3.220.0110.00717.12
8.3.210.0090.00416.68
8.3.200.0040.00516.43
8.3.190.0090.00819.09
8.3.180.0110.00718.41
8.3.170.0140.00316.43
8.3.160.0300.00617.39
8.3.150.0290.00616.56
8.3.140.0290.00417.10
8.3.130.0240.00517.18
8.3.120.0200.00917.31
8.3.110.0290.00117.89
8.3.100.0180.00819.60
8.3.90.0290.00519.91
8.3.80.0260.00722.15
8.3.70.0330.00616.52
8.3.60.0270.00916.29
8.3.50.0210.00822.25
8.3.40.0240.00918.27
8.3.30.0180.00817.71
8.3.20.0180.00418.84
8.3.10.0170.00418.43
8.3.00.0080.00618.46
8.2.290.0120.00620.48
8.2.280.0060.00218.31
8.2.270.0240.00316.42
8.2.260.0210.00617.25
8.2.250.0220.00716.54
8.2.240.0230.00616.73
8.2.230.0260.00618.48
8.2.220.0220.00823.58
8.2.210.0240.00719.81
8.2.200.0200.00916.54
8.2.190.0290.00316.52
8.2.180.0260.00217.05
8.2.170.0290.00519.25
8.2.160.0230.01018.07
8.2.150.0200.00919.60
8.2.140.0240.00619.71
8.2.130.0190.01020.28
8.2.120.0250.00518.63
8.2.110.0240.00618.61
8.2.100.0210.00717.92
8.2.90.0230.00717.63
8.2.80.0210.00917.62
8.2.70.0220.00917.41
8.2.60.0220.00817.50
8.2.50.0230.00617.90
8.2.40.0180.01118.16
8.2.30.0150.00718.21
8.2.20.0220.00617.59
8.2.10.0190.00618.00
8.2.00.0210.00718.00
8.1.330.0110.00821.77
8.1.320.0090.00916.07
8.1.310.0200.01116.30
8.1.300.0230.01016.69
8.1.290.0200.00720.96
8.1.280.0230.00619.29
8.1.270.0220.00318.80
8.1.260.0260.00420.31
8.1.250.0190.01020.85
8.1.240.0200.00219.42
8.1.230.0210.00619.09
8.1.220.0170.00817.42
8.1.210.0200.00217.77
8.1.200.0150.00617.25
8.1.190.0170.00617.20
8.1.180.0150.00817.73
8.1.170.0180.00817.52
8.1.160.0160.00617.56
8.1.150.0180.00917.82
8.1.140.0200.00717.68
8.1.130.0200.00518.14
8.1.120.0190.00717.29
8.1.110.0210.00717.32
8.1.100.0170.00817.38
8.1.90.0180.00717.24
8.1.80.0250.00617.30
8.1.70.0200.00517.30
8.1.60.0210.00417.36
8.1.50.0150.00717.29
8.1.40.0180.00817.45
8.1.30.0180.00717.44
8.1.20.0170.00517.55
8.1.10.0160.00517.42
8.1.00.0130.00617.30
8.0.300.0230.00417.69
8.0.290.0210.00516.45
8.0.280.0210.00417.21
8.0.270.0210.00516.64
8.0.260.0230.00617.75
8.0.250.0210.00216.75
8.0.240.0200.00716.72
8.0.230.0170.00916.71
8.0.220.0180.00916.73
8.0.210.0180.00916.71
8.0.200.0180.00916.61
8.0.190.0210.00516.76
8.0.180.0150.00816.75
8.0.170.0150.00716.75
8.0.160.0140.00516.74
8.0.150.0150.00516.66
8.0.140.0150.00316.63
8.0.130.0110.00815.94
8.0.120.0140.00516.70
8.0.110.0160.00416.67
8.0.100.0130.00616.65
8.0.90.0160.00516.71
8.0.80.0180.00516.61
8.0.70.0150.00416.69
8.0.60.0130.00616.68
8.0.50.0160.00616.62
8.0.30.0200.00316.75
8.0.20.0160.00616.89
8.0.10.0160.00316.78
8.0.00.0110.00716.75
7.4.330.0160.00415.95
7.4.320.0150.00416.42
7.4.300.0070.00716.38
7.4.290.0140.00516.38
7.4.280.0210.00516.40
7.4.270.0160.00516.37
7.4.260.0170.00315.68
7.4.250.0150.00416.33
7.4.240.0140.00416.37
7.4.230.0120.00616.30
7.4.220.0100.00516.43
7.4.210.0130.00616.45
7.4.200.0130.00616.43
7.4.190.0190.00416.42
7.4.180.0190.00516.33
7.4.160.0160.00616.36
7.4.150.0190.00416.25
7.4.140.0180.00416.28
7.4.130.0160.00516.27
7.4.120.0100.00816.23
7.4.110.0100.00816.28
7.4.100.0160.00816.26
7.4.90.0160.00819.87
7.4.80.0170.00416.73
7.4.70.0170.00516.33
7.4.60.0160.00616.28
7.4.50.0170.00516.17
7.4.40.0170.00716.15
7.4.30.0150.00516.18
7.4.20.0170.00416.27
7.4.10.0160.00716.28
7.4.00.0170.00516.23
7.3.330.0190.00416.07
7.3.320.0180.00315.40
7.3.310.0170.00616.19
7.3.300.0190.00416.12
7.3.290.0150.00716.19
7.3.280.0210.00516.08
7.3.270.0180.00616.16
7.3.260.0200.00416.28
7.3.250.0140.00716.13
7.3.240.0150.00416.23
7.3.230.0150.00516.08
7.3.220.0190.00316.10
7.3.210.0170.00516.13
7.3.200.0150.00816.21
7.3.190.0160.00716.14
7.3.180.0170.00716.17
7.3.170.0190.00516.11
7.3.160.0150.00816.20
7.3.150.0150.00816.14
7.3.140.0160.00816.16
7.3.130.0160.00716.16
7.3.120.0180.00616.11
7.3.110.0170.00616.07
7.3.100.0150.00816.08
7.3.90.0190.00516.28
7.3.80.0180.00616.16
7.3.70.0160.00616.17
7.3.60.0160.00716.26
7.3.50.0170.00616.17
7.3.40.0170.00616.27
7.3.30.0170.00816.37
7.3.20.0190.00417.25
7.3.10.0160.00717.17
7.3.00.0190.00517.20
7.2.340.0160.00616.30
7.2.330.0160.00916.34
7.2.320.0170.00716.41
7.2.310.0190.00716.33
7.2.300.0160.01016.44
7.2.290.0210.00416.36
7.2.280.0190.00616.36
7.2.270.0180.00816.27
7.2.260.0180.01016.32
7.2.250.0170.00616.37
7.2.240.0180.00516.35
7.2.230.0180.00516.38
7.2.220.0160.00716.35
7.2.210.0190.00416.40
7.2.200.0180.00816.49
7.2.190.0170.00916.49
7.2.180.0210.00516.48
7.2.170.0220.00516.44
7.2.160.0190.00716.47
7.2.150.0220.00717.37
7.2.140.0230.00417.37
7.2.130.0200.00717.45
7.2.120.0200.00517.42
7.2.110.0210.00617.41
7.2.100.0210.00617.36
7.2.90.0230.00517.47
7.2.80.0230.00417.36
7.2.70.0200.00617.45
7.2.60.0200.00517.44
7.2.50.0190.00817.42
7.2.40.0190.00917.41
7.2.30.0180.00717.29
7.2.20.0230.00517.44
7.2.10.0170.00917.41
7.2.00.0180.00817.46

preferences:
26.9 ms | 403 KiB | 5 Q