3v4l.org

run code in 300+ PHP versions simultaneously
<?php $generator = static function (): iterable { yield 'a' => 'b'; yield new stdClass => 'c'; }; var_export(iterator_to_array($generator()));

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.0120.00817.95
8.4.120.0060.00320.73
8.4.110.0110.00922.65
8.4.100.0150.00519.74
8.4.90.0090.01418.56
8.4.80.0120.00819.55
8.4.70.0120.00418.04
8.4.60.0030.00518.79
8.4.50.0100.01118.52
8.4.40.0100.00318.61
8.4.30.0170.00018.91
8.4.20.0000.02021.27
8.4.10.0090.00019.46
8.3.260.0120.00816.97
8.3.250.0110.00718.80
8.3.240.0160.00416.70
8.3.230.0140.00416.77
8.3.220.0150.00317.09
8.3.210.0120.00618.55
8.3.200.0050.00416.88
8.3.190.0130.00617.09
8.3.180.0110.00718.48
8.3.170.0090.00917.12
8.3.160.0110.00720.68
8.3.150.0060.01216.97
8.3.140.0120.00316.96
8.3.130.0150.00916.60
8.3.120.0180.00216.53
8.3.110.0170.00216.46
8.3.100.0150.00816.61
8.3.90.0200.00316.55
8.3.80.0160.00916.61
8.3.70.0240.00016.66
8.3.60.0090.00917.73
8.3.50.0180.00616.68
8.3.40.0210.00217.52
8.3.30.0170.00517.57
8.3.20.0160.00517.38
8.3.10.0180.00217.39
8.3.00.0090.00318.41
8.2.290.0090.00920.54
8.2.280.0110.00918.78
8.2.270.0070.01116.90
8.2.260.0160.00516.59
8.2.250.0150.00416.58
8.2.240.0170.00417.49
8.2.230.0160.00516.45
8.2.220.0150.00416.58
8.2.210.0130.00316.43
8.2.200.0130.00217.48
8.2.190.0180.00116.51
8.2.180.0160.00316.63
8.2.170.0130.00817.76
8.2.160.0160.00518.64
8.2.150.0170.00317.45
8.2.140.0170.00517.47
8.2.130.0180.00317.29
8.2.120.0160.00517.51
8.2.110.0150.00517.49
8.2.100.0160.00417.55
8.2.90.0120.00817.70
8.2.80.0120.00717.54
8.2.70.0160.00518.30
8.2.60.0130.00817.30
8.2.50.0150.00517.46
8.2.40.0120.00717.47
8.2.30.0130.00617.54
8.2.20.0170.00517.36
8.2.10.0110.00418.38
8.2.00.0140.00517.33
8.1.330.0080.01121.74
8.1.320.0140.00616.46
8.1.310.0150.00415.98
8.1.300.0160.00316.26
8.1.290.0100.00916.22
8.1.280.0160.00316.28
8.1.270.0170.00417.19
8.1.260.0160.00418.58
8.1.250.0180.00217.17
8.1.240.0120.00717.27
8.1.230.0130.00517.17
8.1.220.0140.00417.12
8.1.210.0100.00817.36
8.1.200.0130.00617.25
8.1.190.0160.00217.13
8.1.180.0130.00617.15
8.1.170.0160.00417.00
8.1.160.0090.01016.97
8.1.150.0140.00417.08
8.1.140.0130.00617.96
8.1.130.0120.00617.01
8.1.120.0170.00218.24
8.1.110.0150.00317.21
8.1.100.0080.01117.14
8.1.90.0150.00317.08
8.1.80.0180.00017.17
8.1.70.0150.00417.16
8.1.60.0150.00617.10
8.1.50.0180.00216.99
8.1.40.0180.00317.24
8.1.30.0130.00717.30
8.1.20.0170.00217.15
8.1.10.0140.00617.24
8.1.00.0170.00318.04

preferences:
43.3 ms | 403 KiB | 5 Q