3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen1() { yield from gen2(); } function gen2() { yield "Pierre"; yield "Paul"; } foreach(gen1() as $who) { echo $who.PHP_EOL; }

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.0150.00616.75
8.3.50.0090.00921.01
8.3.40.0140.00418.54
8.3.30.0090.00618.59
8.3.20.0070.00020.20
8.3.10.0020.00523.66
8.3.00.0040.00419.56
8.2.180.0100.00718.16
8.2.170.0100.00322.96
8.2.160.0070.00720.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0060.00317.50
8.2.110.0060.00319.27
8.2.100.0030.01017.63
8.2.90.0000.00819.16
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0090.00018.07
8.2.40.0080.00020.98
8.2.30.0030.00618.06
8.2.20.0000.00717.67
8.2.10.0000.00717.98
8.2.00.0050.00217.98
8.1.280.0100.00325.92
8.1.270.0080.00020.32
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00319.13
8.1.230.0080.00417.42
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0070.00022.00
8.1.150.0030.00618.89
8.1.140.0050.00317.44
8.1.130.0090.00017.70
8.1.120.0030.00317.46
8.1.110.0020.00517.48
8.1.100.0070.00017.50
8.1.90.0040.00417.48
8.1.80.0030.00617.43
8.1.70.0030.00317.39
8.1.60.0000.00917.51
8.1.50.0040.00417.52
8.1.40.0030.00617.52
8.1.30.0000.00817.65
8.1.20.0070.00017.65
8.1.10.0000.00717.42
8.1.00.0000.00817.34
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.40
8.0.270.0000.00817.16
8.0.260.0060.00017.27
8.0.250.0000.00916.93
8.0.240.0030.00517.02
8.0.230.0070.00016.96
8.0.220.0000.00816.93
8.0.210.0040.00416.77
8.0.200.0070.00016.88
8.0.190.0090.00016.84
8.0.180.0000.00816.91
8.0.170.0000.00816.89
8.0.160.0070.00016.82
8.0.150.0000.00716.74
8.0.140.0040.00416.84
8.0.130.0000.00513.40
8.0.120.0000.00816.81
8.0.110.0020.00516.83
8.0.100.0040.00416.77
8.0.90.0040.00416.77
8.0.80.0120.00316.84
8.0.70.0070.00016.74
8.0.60.0070.00016.76
8.0.50.0000.00816.95
8.0.30.0060.01117.15
8.0.20.0090.01117.40
8.0.10.0040.00417.07
8.0.00.0090.01016.70
7.4.330.0000.00515.08
7.4.320.0030.00316.43
7.4.300.0070.00016.42
7.4.290.0030.00316.45
7.4.280.0000.00816.38
7.4.270.0000.00616.34
7.4.260.0040.00416.48
7.4.250.0000.00716.46
7.4.240.0040.00416.37
7.4.230.0030.00516.62
7.4.220.0120.00616.38
7.4.210.0060.00916.57
7.4.200.0000.00716.44
7.4.160.0070.01016.50
7.4.150.0140.00417.40
7.4.140.0120.00517.86
7.4.130.0100.01016.43
7.4.120.0150.00616.64
7.4.110.0150.00316.59
7.4.100.0090.00916.45
7.4.90.0130.00316.45
7.4.80.0100.00919.39
7.4.70.0080.00816.52
7.4.60.0120.00416.45
7.4.50.0060.00316.51
7.4.40.0130.00416.64
7.4.30.0040.01316.46
7.4.00.0090.00614.77
7.3.330.0000.00613.30
7.3.320.0000.00513.12
7.3.310.0000.00716.36
7.3.300.0030.00316.31
7.3.290.0080.00816.26
7.3.280.0090.00916.30
7.3.270.0150.00917.40
7.3.260.0070.01116.66
7.3.250.0120.00716.41
7.3.240.0110.00816.28
7.3.230.0140.00416.50
7.3.210.0080.00816.50
7.3.200.0060.01216.48
7.3.190.0000.01616.37
7.3.180.0100.01016.48
7.3.170.0130.00716.30
7.3.160.0170.00416.59
7.3.120.0070.01015.07
7.3.110.0120.00314.67
7.3.100.0100.00714.86
7.3.90.0090.00415.01
7.3.80.0030.01115.04
7.3.70.0120.00315.01
7.3.60.0120.00314.75
7.3.50.0070.01014.77
7.3.40.0040.00814.98
7.3.30.0060.00614.76
7.3.20.0070.01016.67
7.3.10.0000.01016.64
7.3.00.0070.01016.75
7.2.330.0100.01116.77
7.2.320.0160.00616.31
7.2.310.0040.01816.46
7.2.300.0090.00616.79
7.2.290.0090.00916.61
7.2.240.0040.00714.83
7.2.230.0030.00915.15
7.2.220.0000.01415.08
7.2.210.0090.00615.03
7.2.200.0090.00615.04
7.2.190.0070.01014.89
7.2.180.0100.00715.10
7.2.170.0060.01015.12
7.2.160.0070.00714.77
7.2.150.0000.01416.53
7.2.140.0060.00916.93
7.2.130.0060.01216.57
7.2.120.0030.01016.69
7.2.110.0060.01016.76
7.2.100.0100.00716.67
7.2.90.0100.00616.86
7.2.80.0060.00916.77
7.2.70.0090.00616.94
7.2.60.0060.00716.84
7.2.50.0040.00717.12
7.2.40.0110.00716.75
7.2.30.0070.00716.77
7.2.20.0070.01016.79
7.2.10.0110.00316.92
7.2.00.0060.00818.19
7.1.330.0090.00615.55
7.1.320.0000.01615.92
7.1.310.0040.00716.10
7.1.300.0040.00715.50
7.1.290.0000.01115.89
7.1.280.0100.00715.55
7.1.270.0080.00815.91
7.1.260.0030.01215.71
7.1.250.0070.01015.76
7.1.200.0000.01215.61
7.1.100.0070.00717.97
7.1.70.0030.00517.13
7.1.60.0150.00920.03
7.1.50.0030.00916.90
7.1.00.0070.07322.48
7.0.200.0040.00416.71
7.0.60.0070.08719.83
7.0.50.0070.07017.89
7.0.40.0030.04719.96
7.0.30.0330.05320.15
7.0.20.0130.04320.21
7.0.10.0070.07320.15
7.0.00.0070.04020.20
5.6.280.0000.06720.99
5.6.210.0070.03720.57
5.6.200.0130.05718.18
5.6.190.0130.06320.48
5.6.180.3800.04320.63
5.6.170.0300.06720.56
5.6.160.0030.08720.44
5.6.150.0030.08018.18
5.6.140.0030.08718.16
5.6.130.0070.05018.15
5.6.120.0070.03720.95
5.6.110.0130.08721.13
5.6.100.0170.07021.04
5.6.90.0030.04020.88
5.6.80.0030.04020.52
5.6.70.4130.03020.38
5.5.350.0070.07320.46
5.5.340.0070.08318.09
5.5.330.0070.06720.35
5.5.320.0300.06720.30
5.5.310.0270.07720.30
5.5.300.0070.04718.07
5.5.290.0000.09017.97
5.5.280.0130.07320.87
5.5.270.0200.03720.71
5.5.260.0030.07320.72
5.5.250.0100.07720.75
5.5.240.0270.07720.25
5.4.450.0400.06719.60
5.4.440.0470.06019.59
5.4.430.0430.06319.43
5.4.420.0470.06719.63
5.4.410.0470.05319.52
5.4.400.0300.04719.26
5.4.390.0170.06018.98
5.4.380.0270.05019.14
5.4.370.0200.05318.98
5.4.360.0300.04319.29
5.4.350.0300.04319.02
5.4.340.0300.05319.09
5.4.320.0070.06719.26
5.4.310.0100.06319.26
5.4.300.0170.05319.28
5.4.290.0200.05719.01
5.4.280.0300.05019.26
5.4.270.0230.05019.25
5.4.260.0330.04718.84
5.4.250.0300.06719.11
5.4.240.0170.06018.97
5.4.230.0300.05719.14
5.4.220.0100.06318.98
5.4.210.0270.04319.11
5.4.200.0330.05019.25
5.4.190.0270.05319.14
5.4.180.0200.05318.86
5.4.170.0230.05018.83
5.4.160.0270.06318.99
5.4.150.0400.04019.21
5.4.140.0330.04316.28
5.4.130.0270.04016.50
5.4.120.0100.05316.39
5.4.110.0170.05016.62
5.4.100.0270.04016.19
5.4.90.0030.05716.53
5.4.80.0070.05716.63
5.4.70.0030.03016.34
5.4.60.0230.03716.51
5.4.50.0030.07016.48
5.4.40.0130.05716.48
5.4.30.0100.04316.47
5.4.20.0430.03316.52

preferences:
41.91 ms | 401 KiB | 5 Q