3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generator(): iterable { yield 1; yield 2; yield 3; } $iterable = generator(); var_dump($iterable); var_dump(array(...$iterable));

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.20.0070.01417.69
8.4.10.0070.00619.43
8.3.150.0070.01117.05
8.3.140.0090.00516.55
8.3.130.0100.00417.28
8.3.120.0260.00517.40
8.3.110.0220.00817.50
8.3.100.0210.00917.81
8.3.90.0260.00519.01
8.3.80.0190.00617.33
8.3.70.0250.01016.73
8.3.60.0220.00719.40
8.3.50.0170.00719.14
8.3.40.0210.00717.75
8.3.30.0180.00617.70
8.3.20.0160.00720.79
8.3.10.0180.00618.88
8.3.00.0140.00419.62
8.2.260.0110.00716.73
8.2.250.0070.00716.55
8.2.240.0170.00716.71
8.2.230.0180.00817.63
8.2.220.0220.00618.38
8.2.210.0150.00919.00
8.2.200.0170.00517.04
8.2.190.0190.00416.62
8.2.180.0120.00718.61
8.2.170.0160.00417.92
8.2.160.0200.00218.74
8.2.150.0170.00219.21
8.2.140.0150.00619.01
8.2.130.0180.00519.64
8.2.120.0190.00318.28
8.2.110.0180.00418.35
8.2.100.0200.00517.53
8.2.90.0230.00417.83
8.2.80.0220.00517.58
8.2.70.0200.00817.61
8.2.60.0180.00817.65
8.2.50.0190.00417.86
8.2.40.0140.00517.83
8.2.30.0160.00617.85
8.2.20.0190.00617.55
8.2.10.0170.01017.80
8.2.00.0180.00518.11
8.1.310.0140.00316.08
8.1.300.0210.00517.13
8.1.290.0190.00519.81
8.1.280.0180.00920.56
8.1.270.0230.00418.71
8.1.260.0220.00519.86
8.1.250.0180.00819.53
8.1.240.0150.00817.70
8.1.230.0170.00718.48
8.1.220.0190.00517.78
8.1.210.0170.00717.67
8.1.200.0180.00817.41
8.1.190.0200.00417.21
8.1.180.0190.00417.43
8.1.170.0130.00717.66
8.1.160.0170.00717.62
8.1.150.0170.00717.60
8.1.140.0150.00817.64
8.1.130.0200.00517.69
8.1.120.0180.00617.39
8.1.110.0160.00817.34
8.1.100.0170.00417.35
8.1.90.0150.00517.27
8.1.80.0190.00417.33
8.1.70.0140.00617.40
8.1.60.0200.00717.40
8.1.50.0200.00717.36
8.1.40.0200.00617.40
8.1.30.0200.00617.38
8.1.20.0140.00617.49
8.1.10.0200.00617.29
8.1.00.0140.00617.75
8.0.300.0130.00717.22
8.0.290.0140.00816.80
8.0.280.0170.00517.21
8.0.270.0240.00316.87
8.0.260.0180.00716.83
8.0.250.0190.00516.82
8.0.240.0160.00616.89
8.0.230.0100.00716.89
8.0.220.0160.00516.79
8.0.210.0160.00516.88
8.0.200.0190.00416.96
8.0.190.0170.00617.30
8.0.180.0110.00816.88
8.0.170.0150.00816.95
8.0.160.0150.00617.32
8.0.150.0170.00516.78
8.0.140.0180.00416.83
8.0.130.0170.00316.19
8.0.120.0150.00516.88
8.0.110.0090.00716.81
8.0.100.0150.00716.71
8.0.90.0170.00616.82
8.0.80.0130.01016.87
8.0.70.0180.00616.81
8.0.60.0170.00516.80
8.0.50.0150.01016.87
8.0.30.0180.00616.99
8.0.20.0210.00516.88
8.0.10.0160.00717.00
8.0.00.0170.00717.01
7.4.330.0140.00415.76
7.4.320.0170.00716.92
7.4.300.0180.00416.56
7.4.290.0200.00416.61
7.4.280.0160.00616.56
7.4.270.0180.00416.60
7.4.260.0180.00416.63
7.4.250.0160.00616.63
7.4.240.0220.00116.52
7.4.230.0170.00516.62
7.4.220.0140.00416.62
7.4.210.0110.00916.64
7.4.200.0170.00416.69
7.4.190.0170.00616.70
7.4.180.0170.00716.73
7.4.160.0180.00616.65
7.4.150.0160.00716.55
7.4.140.0150.00816.43
7.4.130.0160.00616.57
7.4.120.0180.00416.56
7.4.110.0140.00716.79
7.4.100.0150.00816.64
7.4.90.0170.00616.52
7.4.80.0160.00616.88
7.4.70.0170.00616.55
7.4.60.0180.00716.47
7.4.50.0180.00716.56
7.4.40.0190.00616.45
7.4.30.0170.00916.41
7.4.20.0140.01016.44
7.4.10.0180.00516.86
7.4.00.0170.00616.56
7.3.330.0160.00416.31
7.3.320.0170.00515.62
7.3.310.0190.00416.27
7.3.300.0160.00516.38
7.3.290.0120.00916.33
7.3.280.0230.00216.29
7.3.270.0160.00716.37
7.3.260.0160.00516.30
7.3.250.0160.00616.25
7.3.240.0180.00516.27
7.3.230.0160.00816.58
7.3.220.0160.00816.34
7.3.210.0180.00516.34
7.3.200.0160.00716.56
7.3.190.0160.00716.30
7.3.180.0160.00916.56
7.3.170.0180.00616.57
7.3.160.0160.00716.33
7.3.150.0150.00516.26
7.3.140.0160.00416.30
7.3.130.0140.00716.27
7.3.120.0160.00716.24
7.3.110.0130.00816.24
7.3.100.0180.00516.21
7.3.90.0170.00516.46
7.3.80.0140.00616.28
7.3.70.0110.00916.26
7.3.60.0140.01016.32
7.3.50.0170.00816.30
7.3.40.0140.00516.31
7.3.30.0120.00716.35
7.3.20.0140.00717.29
7.3.10.0150.00517.22
7.3.00.0160.00417.25

preferences:
72.09 ms | 403 KiB | 5 Q