3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(): iterable { return ['a']; yield 'b'; } foreach(foo() as $v) { echo $v; }

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.5.60.0120.00716.80
8.5.50.0040.00416.48
8.5.30.0080.00818.16
8.5.20.0110.00720.25
8.5.10.0050.00416.68
8.5.00.0120.00919.72
8.4.210.0140.00719.54
8.4.180.0140.00919.55
8.4.170.0110.01022.13
8.4.160.0080.01622.08
8.4.150.0070.00516.82
8.4.140.0090.01217.33
8.4.130.0140.00618.74
8.4.120.0110.01023.97
8.4.110.0150.00522.44
8.4.100.0100.01017.52
8.4.90.0100.01018.52
8.4.80.0130.00717.68
8.4.70.0150.00817.65
8.4.60.0370.00617.63
8.4.50.0330.00817.39
8.4.40.0280.00517.50
8.4.30.0160.00617.47
8.4.20.0170.00517.18
8.4.10.0210.00217.42
8.3.300.0120.00820.77
8.3.290.0110.00822.59
8.3.280.0110.00820.13
8.3.270.0130.00816.49
8.3.260.0110.01016.40
8.3.250.0040.00317.28
8.3.240.0130.00617.38
8.3.230.0080.01216.61
8.3.220.0120.00617.29
8.3.210.0160.00516.23
8.3.200.0240.00816.74
8.3.190.0170.00516.28
8.3.180.0140.00416.23
8.3.170.0160.00516.34
8.3.160.0150.00516.20
8.3.150.0180.00416.33
8.3.140.0150.00516.36
8.3.130.0160.00416.46
8.3.120.0120.00616.41
8.3.110.0140.00416.25
8.3.100.0170.00316.70
8.3.90.0150.00516.59
8.3.80.0140.00616.54
8.3.70.0180.00316.45
8.3.60.0180.00516.20
8.3.50.0180.00516.20
8.3.40.0140.00517.30
8.3.30.0160.00717.18
8.3.20.0140.00317.32
8.3.10.0170.00717.46
8.3.00.0200.00717.34
8.2.300.0120.00720.13
8.2.290.0120.00620.14
8.2.280.0130.00316.29
8.2.270.0140.00416.42
8.2.260.0140.00316.34
8.2.250.0130.00416.50
8.2.240.0110.00616.70
8.2.230.0140.00416.20
8.2.220.0130.00416.33
8.2.210.0130.00216.20
8.2.200.0170.00216.48
8.2.190.0120.00416.23
8.2.180.0130.00416.22
8.2.170.0140.00317.44
8.2.160.0130.00517.68
8.2.150.0150.00517.58
8.2.140.0150.00517.65
8.2.130.0140.00417.13
8.2.120.0130.00517.59
8.2.110.0140.00417.19
8.2.100.0180.00717.61
8.2.90.0230.00417.30
8.2.80.0180.00117.27
8.2.70.0180.00717.56
8.2.60.0200.00417.42
8.2.50.0170.00417.32
8.2.40.0250.00317.35
8.2.30.0140.00417.22
8.2.20.0230.00217.35
8.2.10.0140.00417.40
8.2.00.0110.00517.39
8.1.340.0130.00720.24

preferences:
53.57 ms | 840 KiB | 5 Q