3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(&$gen) { yield 'foo'; $gen->throw(new Exception()); } $gen = f($gen); foreach($gen as $_) {} ?>

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.00.0120.00921.74
8.4.150.0020.00014.05
8.4.140.0100.01217.66
8.4.130.0130.00418.59
8.4.120.0120.00823.93
8.4.110.0390.01483.55
8.4.100.0500.01478.70
8.4.90.0440.01583.25
8.4.80.0520.01478.80
8.4.70.0500.01478.97
8.4.60.0640.01579.68
8.4.50.0510.01279.79
8.4.40.0530.01078.61
8.4.30.0420.02680.04
8.4.20.0440.01780.71
8.4.10.0550.00780.40
8.3.280.0100.00918.43
8.3.270.0090.01216.68
8.3.260.0140.00616.69
8.3.250.0080.01018.88
8.3.240.0520.01677.70
8.3.230.0490.01677.71
8.3.220.0440.01477.96
8.3.210.0560.01977.63
8.3.200.0410.00677.65
8.3.190.0440.01178.18
8.3.180.0510.01779.97
8.3.170.0530.01677.95
8.3.160.0210.02477.99
8.3.150.0600.01777.48
8.3.140.0350.01077.56
8.3.130.0540.00377.86
8.3.120.0380.01079.94
8.3.110.0290.01377.87
8.3.100.1110.02277.52
8.3.90.0510.01478.01
8.3.80.0190.00337.54
8.3.70.0180.00637.54
8.3.60.0180.00537.54
8.3.50.0340.00837.54
8.3.40.0270.00337.54
8.3.30.0310.00537.54
8.3.20.0330.00637.54
8.3.10.0210.00637.54
8.3.00.0320.00837.54
8.2.290.0540.00681.64
8.2.280.0710.01979.38
8.2.270.0460.00378.15
8.2.260.0570.01778.07
8.2.250.0390.01677.82
8.2.240.0630.02078.11
8.2.230.0450.00377.63
8.2.220.0760.01277.42
8.2.210.0680.01177.46
8.2.200.0190.00537.54
8.2.190.0240.00937.54
8.2.180.0170.00737.54
8.2.170.0250.00437.54
8.2.160.0230.01037.54
8.2.150.0280.01637.54
8.2.140.0400.00837.54
8.2.130.0370.00537.54
8.2.120.0310.00937.54
8.2.110.0350.00737.54
8.2.100.0320.01137.54
8.2.90.0310.01237.54
8.2.80.0310.00937.54
8.2.70.0330.00637.54
8.2.60.0270.01337.54
8.2.50.0250.01237.54
8.2.40.0310.00637.54
8.2.30.0330.01137.54
8.2.20.0270.00837.54
8.2.10.0190.00537.54
8.2.00.0150.00437.54
8.1.330.0110.00722.19
8.1.320.0070.00215.97
8.1.310.0000.00916.61
8.1.300.0120.00616.71
8.1.290.0230.00737.54
8.1.280.0200.00337.54
8.1.270.0170.00737.54
8.1.260.0360.00737.54
8.1.250.0310.00937.54
8.1.240.0240.00537.54
8.1.230.0260.00237.54
8.1.220.0220.01037.54
8.1.210.0270.01137.54
8.1.200.0260.00637.54
8.1.190.0230.00637.54
8.1.180.0190.01037.54
8.1.170.0140.00537.54
8.1.160.0200.00537.54
8.1.150.0220.00337.54
8.1.140.0230.00437.54
8.1.130.0240.00237.54
8.1.120.0200.00337.54
8.1.110.0220.01137.54
8.1.100.0300.00737.54
8.1.90.0290.01037.54
8.1.80.0270.01237.54
8.1.70.0330.00937.54
8.1.60.0330.01137.54
8.1.50.0350.00337.54
8.1.40.0330.00637.54
8.1.30.0330.00837.54
8.1.20.0260.00537.54
8.1.10.0310.00437.54
8.1.00.0270.01337.54

preferences:
37.66 ms | 403 KiB | 5 Q