3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generator(): iterable { yield 'x' => 1; yield 2; yield 3; } $iterable = generator(); var_dump($iterable); var_export([...$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.130.0060.01217.76
8.4.120.0120.00520.24
8.4.110.0130.00718.84
8.4.100.0150.00617.73
8.4.90.0120.00717.70
8.4.80.0120.00918.62
8.4.70.0080.01217.59
8.4.60.0130.00818.95
8.4.50.0120.00822.08
8.4.40.0060.01317.70
8.4.30.0100.01018.59
8.4.20.0070.01419.46
8.4.10.0260.00317.68
8.3.250.0130.00618.53
8.3.240.0100.00916.45
8.3.230.0100.00816.56
8.3.220.0090.00818.96
8.3.210.0120.00716.73
8.3.200.0040.00516.46
8.3.190.0030.00517.19
8.3.180.0090.00618.53
8.3.170.0140.00416.50
8.3.160.0090.00916.28
8.3.150.0100.01017.36
8.3.140.0190.00916.60
8.3.130.0240.00316.52
8.3.120.0190.01017.69
8.3.110.0220.00916.45
8.3.100.0240.00420.16
8.3.90.0250.00521.67
8.3.80.0170.00916.60
8.3.70.0210.00516.42
8.3.60.0140.01016.33
8.3.50.0140.01017.16
8.3.40.0120.00318.40
8.3.30.0160.00317.99
8.3.20.0080.00420.74
8.3.10.0180.00420.99
8.3.00.0110.00721.79
8.2.290.0140.00422.44
8.2.280.0080.00618.20
8.2.270.0110.00716.81
8.2.260.0200.00517.57
8.2.250.0220.00616.81
8.2.240.0160.00817.57
8.2.230.0160.00818.81
8.2.220.0180.00627.02
8.2.210.0200.00621.58
8.2.200.0150.00816.64
8.2.190.0220.00716.51
8.2.180.0220.00521.20
8.2.170.0230.00918.37
8.2.160.0230.00520.27
8.2.150.0190.00621.43
8.2.140.0220.00321.05
8.2.130.0190.00621.82
8.2.120.0140.01019.35
8.2.110.0160.01019.26
8.2.100.0220.00517.66
8.2.90.0170.00518.45
8.2.80.0190.00517.76
8.2.70.0150.01117.39
8.2.60.0200.00217.71
8.2.50.0120.00117.72
8.2.40.0110.00417.80
8.2.30.0040.00917.72
8.2.20.0140.00618.34
8.2.10.0180.00417.66
8.2.00.0150.00718.33
8.1.330.0100.00818.52
8.1.320.0160.00416.25
8.1.310.0200.00316.10
8.1.300.0170.01116.94
8.1.290.0200.00517.55
8.1.280.0170.01020.90
8.1.270.0210.00319.71
8.1.260.0210.00421.76
8.1.250.0160.00922.73
8.1.240.0190.00519.87
8.1.230.0210.00718.94
8.1.220.0190.00417.51
8.1.210.0140.00718.14
8.1.200.0110.00748.26
8.1.190.0190.00317.23
8.1.180.0190.00317.53
8.1.170.0140.00917.69
8.1.160.0170.00517.90
8.1.150.0120.01017.88
8.1.140.0200.00217.23
8.1.130.0150.00617.32
8.1.120.0170.00517.29
8.1.110.0190.00217.26
8.1.100.0160.00617.32
8.1.90.0130.00817.36
8.1.80.0160.00717.34
8.1.70.0150.00717.41
8.1.60.0170.00617.44
8.1.50.0170.00917.34
8.1.40.0170.00917.39
8.1.30.0220.00217.48
8.1.20.0140.01017.40
8.1.10.0110.01317.43
8.1.00.0180.00517.22
8.0.300.0180.00318.26
8.0.290.0160.00516.67
8.0.280.0170.00617.62
8.0.270.0160.00516.77
8.0.260.0100.01116.72
8.0.250.0170.00516.85
8.0.240.0170.00816.88
8.0.230.0170.00516.78
8.0.220.0130.00916.71
8.0.210.0200.00216.73
8.0.200.0200.00216.90
8.0.190.0220.00316.78
8.0.180.0130.00716.88
8.0.170.0130.00916.81
8.0.160.0200.00316.84
8.0.150.0180.00416.79
8.0.140.0150.00516.81
8.0.130.0130.00514.92
8.0.120.0160.00915.00
8.0.110.0180.00614.97
8.0.100.0210.00314.91
8.0.90.0230.00214.97
8.0.80.0160.00814.95
8.0.70.0230.00314.96
8.0.60.0180.00815.01
8.0.50.0180.00615.05
8.0.30.0210.00315.00
8.0.20.0220.00314.96
8.0.10.0190.00615.08
8.0.00.0140.00815.13
7.4.330.0140.00715.94
7.4.320.0100.01016.45
7.4.300.0130.00716.44
7.4.290.0140.00616.35
7.4.280.0090.00916.33
7.4.270.0140.01116.36
7.4.260.0110.00514.62
7.4.250.0150.00014.78
7.4.240.0090.00514.73
7.4.230.0120.00714.76
7.4.220.0200.00414.68
7.4.210.0230.00014.78
7.4.200.0190.00314.72
7.4.190.0180.00514.86
7.4.180.0190.00414.84
7.4.160.0150.00714.84
7.4.150.0150.00514.80
7.4.140.0180.00014.71
7.4.130.0120.00414.76
7.4.120.0130.00714.69
7.4.110.0220.00414.71
7.4.100.0170.00314.82
7.4.90.0150.00714.72
7.4.80.0140.00814.75
7.4.70.0160.00914.77
7.4.60.0140.00714.64
7.4.50.0170.00514.54
7.4.40.0200.00314.61
7.4.30.0120.00914.63
7.4.20.0170.00514.67
7.4.10.0140.00714.62
7.4.00.0190.00214.68
7.3.330.0140.00615.85
7.3.320.0170.00514.41
7.3.310.0170.00314.31
7.3.300.0160.00414.59
7.3.290.0160.00514.34
7.3.280.0210.00014.30
7.3.270.0160.00514.55
7.3.260.0200.00514.51
7.3.250.0110.00814.44
7.3.240.0150.00714.42
7.3.230.0180.00414.42
7.3.220.0190.00414.41
7.3.210.0180.00314.41
7.3.200.0150.00514.40
7.3.190.0140.00414.46
7.3.180.0110.00414.48
7.3.170.0190.00414.43
7.3.160.0190.00414.54
7.3.150.0210.00214.56
7.3.140.0210.00314.37
7.3.130.0150.00714.46
7.3.120.0140.00714.47
7.3.110.0140.01114.35
7.3.100.0160.00714.32
7.3.90.0220.00414.51
7.3.80.0210.00414.32
7.3.70.0110.01114.40
7.3.60.0130.00914.57
7.3.50.0100.00814.59
7.3.40.0080.00414.44
7.3.30.0170.00414.54
7.3.20.0170.00516.24
7.3.10.0090.00316.26
7.3.00.0050.00616.38

preferences:
27.58 ms | 403 KiB | 5 Q