3v4l.org

run code in 500+ PHP versions simultaneously
<?php function myGenerator() { yield 0 => 1; yield 0 => 2; yield 0 => 3; } foreach (myGenerator() as $key => $value) { echo $key . PHP_EOL; } // Output: // 0 // 0 // 0 ?>

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.0110.00716.52
8.5.50.0080.00616.55
8.5.30.0050.00317.96
8.5.20.0110.00719.88
8.5.10.0110.00916.70
8.5.00.0130.01020.05
8.4.210.0130.00719.67
8.4.180.0110.01219.56
8.4.170.0100.01223.98
8.4.160.0100.01122.11
8.4.150.0070.00616.81
8.4.140.0030.00617.45
8.4.130.0140.00617.39
8.4.120.0100.01120.50
8.4.110.0110.00922.54
8.4.100.0160.00617.64
8.4.90.0030.00617.50
8.4.80.0170.00917.28
8.4.70.0190.00817.64
8.4.60.0460.01317.45
8.4.50.0200.00317.40
8.4.40.0360.00517.14
8.4.30.0430.01017.65
8.4.20.0420.00917.25
8.4.10.0420.01117.53
8.3.300.0140.00720.80
8.3.290.0150.00520.80
8.3.280.0100.01120.07
8.3.270.0090.01116.48
8.3.260.0120.00716.76
8.3.250.0100.00218.93
8.3.240.0120.00416.56
8.3.230.0100.00916.74
8.3.220.0210.00616.97
8.3.210.0170.00916.97
8.3.200.0420.00616.97
8.3.190.0390.00716.97
8.3.180.0200.00816.97
8.3.170.0220.00216.97
8.3.160.0190.00416.97
8.3.150.0190.00416.97
8.3.140.0210.00416.97
8.3.130.0170.00316.97
8.3.120.0170.00416.97
8.3.110.0180.00216.97
8.3.100.0230.00516.97
8.3.90.0290.00316.97
8.3.80.0180.00516.97
8.3.70.0340.00716.97
8.3.60.0230.00716.97
8.3.50.0170.00616.97
8.3.40.0380.01217.27
8.3.30.0350.00917.43
8.3.20.0260.00917.50
8.3.10.0440.00817.52
8.3.00.0320.01017.25
8.2.300.0130.01020.24
8.2.290.0120.00820.20
8.2.280.0320.01016.97
8.2.270.0430.00416.97
8.2.260.0350.00916.97
8.2.250.0340.00716.97
8.2.240.0320.01016.97
8.2.230.0340.00716.97
8.2.220.0320.00816.97
8.2.210.0340.00816.97
8.2.200.0350.01016.97
8.2.190.0390.00516.97
8.2.180.0330.00416.97
8.2.170.0320.00917.61
8.2.160.0270.00617.42
8.2.150.0300.01017.38
8.2.140.0330.01117.49
8.2.130.0340.00917.32
8.2.120.0420.00617.43
8.2.110.0370.00817.61
8.2.100.0310.00917.54
8.2.90.0350.00817.52
8.2.80.0360.00817.57
8.2.70.0420.00317.43
8.2.60.0320.00817.40
8.2.50.0370.00717.44
8.2.40.0390.00917.47
8.2.30.0390.00417.48
8.2.20.0360.00517.61
8.2.10.0270.00717.54
8.2.00.0140.00517.34
8.1.340.0140.00620.32

preferences:
61 ms | 843 KiB | 5 Q