3v4l.org

run code in 300+ PHP versions simultaneously
<?php function helloWorld() { yield from ['Hello', 'World']; } function genX() { $gen = helloWorld(); foreach ($gen as $word) { yield $word; } } $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.70.0090.00616.19
8.3.60.0040.01118.18
8.3.50.0120.00918.04
8.3.40.0110.00718.75
8.3.30.0090.00618.59
8.3.20.0030.00518.65
8.3.10.0080.00021.81
8.3.00.0030.00521.66
8.2.190.0110.00416.58
8.2.180.0090.00618.16
8.2.170.0040.01122.96
8.2.160.0180.00320.43
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0060.00322.25
8.2.120.0070.00026.35
8.2.110.0060.00322.11
8.2.100.0130.00017.91
8.2.90.0030.00617.50
8.2.80.0070.00317.97
8.2.70.0000.00718.03
8.2.60.0060.00318.22
8.2.50.0060.00318.10
8.2.40.0000.00719.25
8.2.30.0030.00520.62
8.2.20.0000.01017.95
8.2.10.0020.00518.11
8.2.00.0080.00019.33
8.1.280.0040.01425.92
8.1.270.0030.00620.41
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0050.00322.19
8.1.230.0040.00818.95
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.25
8.1.190.0070.00317.35
8.1.180.0030.00618.10
8.1.170.0080.00018.50
8.1.160.0000.00718.89
8.1.150.0000.00718.77
8.1.140.0040.00418.80
8.1.130.0070.00320.18
8.1.120.0030.00617.44
8.1.110.0030.00317.50
8.1.100.0000.00717.48
8.1.90.0030.00517.39
8.1.80.0080.00317.37
8.1.70.0000.00817.52
8.1.60.0030.00817.55
8.1.50.0000.01017.46
8.1.40.0040.00417.59
8.1.30.0050.00317.48
8.1.20.0030.00617.60
8.1.10.0000.00717.41
8.1.00.0040.00417.36
8.0.300.0040.00419.73
8.0.290.0000.00716.75
8.0.280.0050.00318.45
8.0.270.0000.00717.33
8.0.260.0000.00618.41
8.0.250.0060.00316.93
8.0.240.0070.00316.98
8.0.230.0050.00216.85
8.0.220.0030.00316.90
8.0.210.0000.00816.93
8.0.200.0030.00316.96
8.0.190.0080.00016.95
8.0.180.0000.00716.92
8.0.170.0040.00416.84
8.0.160.0000.00716.90
8.0.150.0000.00716.79
8.0.140.0040.00416.72
8.0.130.0040.00413.34
8.0.120.0080.00016.92
8.0.110.0000.00816.89
8.0.100.0070.00016.68
8.0.90.0000.00716.83
8.0.80.0110.00716.90
8.0.70.0040.00416.78
8.0.60.0040.00416.96
8.0.50.0050.00316.89
8.0.30.0200.00417.07
8.0.20.0090.00917.40
8.0.10.0000.00716.97
8.0.00.0070.01316.79
7.4.330.0000.00515.55
7.4.320.0030.00316.53
7.4.300.0030.00316.46
7.4.290.0030.00316.60
7.4.280.0070.00016.51
7.4.270.0040.00316.52
7.4.260.0030.00316.49
7.4.250.0000.00716.56
7.4.240.0030.00516.40
7.4.230.0030.00316.61
7.4.220.0000.00816.60
7.4.210.0120.00616.54
7.4.200.0070.00016.43
7.4.160.0070.00916.54
7.4.140.0100.00917.86
7.4.130.0120.00616.56
7.4.120.0080.01016.50
7.4.110.0000.01716.54
7.4.100.0110.00516.64
7.4.90.0140.00416.55
7.4.80.0110.01219.39
7.4.70.0110.01116.50
7.4.60.0130.01316.45
7.4.50.0030.00916.55
7.4.40.0090.00716.47
7.4.10.0100.01015.20
7.4.00.0080.00715.03
7.3.330.0000.00513.23
7.3.320.0060.00013.39
7.3.310.0070.00316.36
7.3.300.0070.00016.37
7.3.290.0070.00016.43
7.3.280.0060.01116.32
7.3.260.0120.00616.47
7.3.240.0090.01016.42
7.3.230.0120.00616.42
7.3.210.0030.01516.31
7.3.200.0130.00316.48
7.3.190.0100.00616.46
7.3.180.0160.00316.38
7.3.170.0090.00616.35
7.3.160.0120.00416.59
7.3.130.0090.00914.85
7.3.120.0030.01015.04
7.3.110.0040.01514.71
7.3.100.0070.00714.92
7.3.90.0100.00314.55
7.3.80.0120.00014.92
7.3.70.0030.01014.88
7.3.60.0040.00415.00
7.3.50.0030.00714.83
7.3.40.0100.00714.79
7.3.30.0100.00314.62
7.3.20.0070.00416.37
7.3.10.0060.00616.38
7.3.00.0070.00716.39
7.2.330.0070.01116.76
7.2.320.0120.00616.70
7.2.310.0060.01216.59
7.2.300.0140.00316.86
7.2.290.0070.01116.69
7.2.260.0030.01714.92
7.2.250.0100.00715.20
7.2.240.0000.01514.77
7.2.230.0040.01214.90
7.2.220.0100.01015.24
7.2.210.0030.00715.21
7.2.200.0110.00415.16
7.2.190.0030.01014.98
7.2.180.0100.00015.13
7.2.170.0080.00515.00
7.2.160.0120.00315.10
7.2.150.0000.01516.67
7.2.140.0030.01316.89
7.2.130.0030.01016.89
7.2.120.0060.00616.71
7.2.110.0030.00717.04
7.2.100.0750.00515.82
7.2.90.0540.00815.63
7.2.80.0590.00915.88
7.2.70.0860.01215.87
7.2.60.1180.00815.73
7.2.50.0880.01216.01
7.2.40.1020.00515.86
7.2.30.1060.01015.85
7.2.20.0720.00616.04
7.2.10.1060.01215.95
7.2.00.1070.00516.06
7.1.330.0060.00616.00
7.1.320.0000.01515.63
7.1.310.0040.00815.70
7.1.300.0000.01615.54
7.1.290.0040.01115.82
7.1.280.0030.01215.52
7.1.270.0060.00315.63
7.1.260.0040.00415.63
7.1.250.0040.00415.96
7.1.240.0060.00615.83
7.1.230.0090.00315.43
7.1.220.0830.00414.72
7.1.210.1070.00514.90
7.1.200.0680.00614.68
7.1.190.0670.00714.80
7.1.180.0900.01014.73
7.1.170.0980.01114.79
7.1.160.1240.00814.72
7.1.150.0950.00714.89
7.1.140.1070.00514.81
7.1.130.0950.00814.93
7.1.120.0960.00814.74
7.1.110.1050.00914.71
7.1.100.1060.01214.72
7.1.90.1260.00914.63
7.1.80.1590.00214.80
7.1.70.1450.00714.95
7.1.60.1600.00823.65
7.1.50.1850.00323.56
7.1.40.1970.00823.60
7.1.30.2160.01023.95
7.1.20.2460.00623.80
7.1.10.2370.00514.92
7.1.00.1180.00314.86
7.0.330.0080.00415.47
7.0.320.0000.01415.12
7.0.310.0030.00615.43
7.0.300.0080.00315.40
7.0.290.0060.00715.58
7.0.280.0060.00615.39
7.0.270.0100.00315.46
7.0.260.0100.00315.20
7.0.250.0060.01015.18
7.0.240.0040.01515.48
7.0.230.0080.00315.27
7.0.220.0040.00715.55
7.0.210.0050.00515.43
7.0.200.0030.01315.25
7.0.190.0060.00915.54
7.0.180.0050.00315.15
7.0.170.0000.01215.44
7.0.160.0050.00515.59
7.0.150.0000.01015.46
7.0.140.0070.01015.48
7.0.130.0030.01015.18
7.0.120.0060.00915.26
7.0.110.0090.00015.53
7.0.100.0070.00415.12
7.0.90.0040.01115.27
7.0.80.0030.01015.29
7.0.70.0060.00315.12
7.0.60.0000.01115.39
7.0.50.0090.00315.53
7.0.40.0030.00813.37
7.0.30.0060.00313.38
7.0.20.0000.00813.50
7.0.10.0040.01213.54
7.0.00.0090.00613.36
5.6.400.0030.00714.16
5.6.390.0070.00714.29
5.6.380.0060.00914.13
5.6.370.0060.00614.14
5.6.360.0120.00414.13
5.6.350.0000.01114.08
5.6.340.0090.00313.93
5.6.330.0120.00013.77
5.6.320.0060.00614.12
5.6.310.0030.00714.23
5.6.300.0000.01414.19
5.6.290.0070.01014.33
5.6.280.0100.00714.00
5.6.270.0000.01014.01
5.6.260.0070.00713.96
5.6.250.0000.01414.11
5.6.240.0110.00414.28
5.6.230.0100.00314.20
5.6.220.0070.00713.86
5.6.210.0040.00714.02
5.6.200.0060.00614.20
5.6.190.0000.01614.08
5.6.180.0000.01514.14
5.6.170.0030.00614.02
5.6.160.0030.01414.07
5.6.150.0100.00313.98
5.6.140.0070.00714.12
5.6.130.0090.00314.17
5.6.120.0070.00714.07
5.6.110.0100.00714.20
5.6.100.0060.01014.13
5.6.90.0080.00413.84
5.6.80.0040.01113.84
5.6.70.0070.00713.96
5.6.60.0040.01114.20
5.6.50.0030.01013.98
5.6.40.0000.01013.87
5.6.30.0030.01313.99
5.6.20.0090.00314.07
5.6.10.0000.01114.23
5.6.00.0000.00913.88

preferences:
18.65 ms | 401 KiB | 5 Q