3v4l.org

run code in 300+ PHP versions simultaneously
<?php function helloWorld() { yield from ['Hello', 'World']; } function genX() { $gen = helloWorld(); yield $gen; } $genii = genX(); foreach ($genii as $words) { echo '[', $words, ']'; };

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.3.60.0040.01118.55
8.3.50.0070.01418.08
8.3.40.0030.01518.82
8.3.30.0070.00718.82
8.3.20.0000.00818.66
8.3.10.0050.00321.73
8.3.00.0050.00221.94
8.2.180.0110.00418.47
8.2.170.0140.00022.96
8.2.160.0110.00420.34
8.2.150.0050.00324.18
8.2.140.0030.00724.66
8.2.130.0080.00022.21
8.2.120.0030.00626.35
8.2.110.0080.00419.45
8.2.100.0090.00318.00
8.2.90.0000.00817.75
8.2.80.0000.00817.97
8.2.70.0000.00817.92
8.2.60.0000.00818.22
8.2.50.0050.00518.10
8.2.40.0050.00219.30
8.2.30.0000.00720.49
8.2.20.0090.00018.16
8.2.10.0050.00218.02
8.2.00.0080.00019.34
8.1.280.0060.00925.92
8.1.270.0000.00720.39
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0030.00719.13
8.1.230.0070.00417.64
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.36
8.1.190.0040.00417.36
8.1.180.0080.00018.10
8.1.170.0050.00318.50
8.1.160.0040.00418.87
8.1.150.0040.00418.84
8.1.140.0040.00418.98
8.1.130.0050.00520.13
8.1.120.0060.00317.45
8.1.110.0030.00517.34
8.1.100.0040.00417.45
8.1.90.0030.00617.48
8.1.80.0050.00417.42
8.1.70.0050.00217.45
8.1.60.0080.00317.59
8.1.50.0060.00617.57
8.1.40.0040.00417.41
8.1.30.0030.00517.54
8.1.20.0040.00417.56
8.1.10.0020.00517.58
8.1.00.0000.00817.57
8.0.300.0000.00718.77
8.0.290.0000.00916.75
8.0.280.0070.00018.34
8.0.270.0000.00717.13
8.0.260.0000.00618.43
8.0.250.0060.00316.91
8.0.240.0100.00016.99
8.0.230.0040.00417.04
8.0.220.0030.00316.91
8.0.210.0070.00016.95
8.0.200.0040.00417.00
8.0.190.0050.00317.07
8.0.180.0040.00416.98
8.0.170.0060.00316.86
8.0.160.0030.00516.96
8.0.150.0030.00316.94
8.0.140.0070.00016.95
8.0.130.0050.00013.33
8.0.120.0030.00516.92
8.0.110.0080.00017.00
8.0.100.0050.00316.77
8.0.90.0040.00416.85
8.0.80.0120.01016.94
8.0.70.0000.00716.84
8.0.60.0060.00316.79
8.0.50.0040.00416.93
8.0.30.0080.01017.13
8.0.20.0130.00717.40
8.0.10.0070.00016.89
8.0.00.0110.00816.75
7.4.330.0050.00015.55
7.4.320.0060.00016.41
7.4.300.0000.00616.49
7.4.290.0060.00016.49
7.4.280.0040.00416.60
7.4.270.0000.00716.64
7.4.260.0040.00416.63
7.4.250.0030.00316.45
7.4.240.0000.00716.59
7.4.230.0000.00716.25
7.4.220.0080.00016.31
7.4.210.0120.01016.50
7.4.200.0050.00216.52
7.4.160.0120.00516.48
7.4.140.0100.00917.86
7.4.130.0030.01416.57
7.4.120.0110.01016.47
7.4.110.0130.00316.48
7.4.100.0030.01416.73
7.4.90.0130.01016.50
7.4.80.0120.01119.39
7.4.70.0090.01316.52
7.4.60.0090.00916.61
7.4.50.0130.00316.45
7.4.40.0140.00316.61
7.4.00.0030.01315.01
7.3.330.0050.00013.42
7.3.320.0000.00513.28
7.3.310.0070.00016.46
7.3.300.0020.00516.36
7.3.290.0050.00316.46
7.3.280.0100.00516.39
7.3.260.0090.01116.48
7.3.240.0110.00716.45
7.3.230.0150.00616.38
7.3.210.0130.00616.36
7.3.200.0060.01316.62
7.3.190.0150.00016.33
7.3.180.0130.00316.65
7.3.170.0110.00616.43
7.3.160.0110.00416.47
7.2.330.0110.00716.54
7.2.320.0160.00616.82
7.2.310.0090.00916.72
7.2.300.0110.01416.75
7.2.290.0100.00916.74
7.2.100.1140.00314.63
7.2.90.1110.01314.80
7.2.80.1840.00314.68
7.2.70.1690.00314.77
7.2.60.1960.01014.76
7.2.50.1760.00015.09
7.2.40.1620.00714.96
7.2.30.1480.01314.83
7.2.20.0330.01015.13
7.2.10.1620.01014.92
7.2.00.1580.00315.01
7.1.220.2030.00713.75
7.1.210.1570.00713.97
7.1.200.1520.01013.73
7.1.190.2270.00613.45
7.1.180.1780.00313.75
7.1.170.1580.00713.74
7.1.160.1880.01013.60
7.1.150.1760.00613.71
7.1.140.0320.01213.84
7.1.130.1150.00314.05
7.1.120.1610.00013.97
7.1.110.1810.01014.01
7.1.100.2530.00313.91
7.1.90.2470.01013.98
7.1.80.2430.00613.86
7.1.70.2170.00013.81
7.1.60.2040.01031.88
7.1.50.2960.00631.38
7.1.40.3270.01031.40
7.1.30.2120.00331.93
7.1.20.3170.00331.86
7.1.10.3610.01013.81
7.1.00.1850.00613.88
5.6.380.0080.00814.12

preferences:
56.56 ms | 400 KiB | 5 Q