3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen1() { yield 11; yield 12; yield 13; } function gen2() { try { echo "Try\n"; } catch (Exception $e) { } finally { yield from gen1(); yield 20; } yield 21; yield 22; yield 23; } foreach (gen2() as $val) { echo "$val\n"; }

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.15
8.3.50.0080.01121.13
8.3.40.0120.00318.70
8.3.30.0140.00018.57
8.3.20.0070.00020.31
8.3.10.0040.00423.65
8.3.00.0040.00417.80
8.2.180.0160.00718.16
8.2.170.0070.01122.96
8.2.160.0130.00020.53
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0090.00017.63
8.2.110.0000.00920.86
8.2.100.0040.00818.03
8.2.90.0030.00619.08
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0030.00619.46
8.2.30.0000.00720.74
8.2.20.0040.00417.71
8.2.10.0040.00418.07
8.2.00.0040.00418.13
8.1.280.0060.00925.92
8.1.270.0080.00023.73
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.62
8.1.230.0000.01217.65
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0000.00818.69
8.1.160.0040.00421.97
8.1.150.0040.00418.89
8.1.140.0050.00317.46
8.1.130.0000.00717.62
8.1.120.0000.00717.46
8.1.110.0000.00717.43
8.1.100.0080.00017.53
8.1.90.0050.00317.37
8.1.80.0080.00017.34
8.1.70.0040.00417.47
8.1.60.0040.00417.64
8.1.50.0150.00317.45
8.1.40.0000.00817.44
8.1.30.0040.00417.58
8.1.20.0040.00417.72
8.1.10.0000.00817.57
8.1.00.0000.00917.47
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0030.00517.22
8.0.260.0030.00317.27
8.0.250.0000.00716.88
8.0.240.0040.00416.98
8.0.230.0070.00016.99
8.0.220.0040.00416.91
8.0.210.0070.00016.92
8.0.200.0040.00416.98
8.0.190.0040.00716.97
8.0.180.0030.00516.90
8.0.170.0080.00016.91
8.0.160.0050.00216.83
8.0.150.0000.00716.92
8.0.140.0000.00716.88
8.0.130.0030.00313.40
8.0.120.0060.00316.84
8.0.110.0070.00016.80
8.0.100.0040.00416.87
8.0.90.0000.00716.70
8.0.80.0150.00016.88
8.0.70.0070.00016.80
8.0.60.0080.00016.94
8.0.50.0040.00416.78
8.0.30.0120.01017.33
8.0.20.0130.00717.40
8.0.10.0040.00416.88
8.0.00.0070.00916.62
7.4.330.0020.00215.08
7.4.320.0030.00316.57
7.4.300.0060.00016.50
7.4.290.0060.00316.34
7.4.280.0040.00416.54
7.4.270.0000.00716.54
7.4.260.0030.00316.35
7.4.250.0000.00816.50
7.4.240.0020.00616.48
7.4.230.0000.00716.52
7.4.220.0070.01816.43
7.4.210.0070.00716.63
7.4.200.0030.00316.43
7.4.160.0130.01016.50
7.4.150.0030.01417.40
7.4.140.0070.01017.86
7.4.130.0090.00816.58
7.4.120.0030.01516.65
7.4.110.0110.00716.54
7.4.100.0100.01316.52
7.4.90.0130.00616.47
7.4.80.0090.00919.39
7.4.70.0100.01016.44
7.4.60.0060.01016.50
7.4.50.0000.00816.54
7.4.40.0140.00316.53
7.4.30.0030.01416.52
7.4.00.0070.00914.89
7.3.330.0000.00513.13
7.3.320.0000.00513.27
7.3.310.0050.00316.32
7.3.300.0030.00316.26
7.3.290.0060.00916.26
7.3.280.0090.01016.31
7.3.270.0030.01317.40
7.3.260.0150.00316.52
7.3.250.0100.01116.42
7.3.240.0110.00816.41
7.3.230.0150.00316.48
7.3.210.0100.00716.35
7.3.200.0060.01016.55
7.3.190.0110.00416.25
7.3.180.0030.01416.39
7.3.170.0140.00716.36
7.3.160.0070.01016.48
7.3.120.0040.01414.85
7.3.110.0100.00715.07
7.3.100.0050.00515.10
7.3.90.0110.00714.79
7.3.80.0060.00614.84
7.3.70.0100.00315.00
7.3.60.0000.01514.84
7.3.50.0060.00914.80
7.3.40.0030.01014.89
7.3.30.0060.00614.46
7.3.20.0060.00616.82
7.3.10.0040.01116.50
7.3.00.0050.00816.75
7.2.330.0100.00716.52
7.2.320.0090.01216.39
7.2.310.0080.00916.79
7.2.300.0100.01316.61
7.2.290.0070.01016.75
7.2.250.0000.02015.05
7.2.240.0090.00914.91
7.2.230.0110.00814.88
7.2.220.0100.01014.87
7.2.210.0000.01015.11
7.2.200.0030.01415.14
7.2.190.0030.01015.14
7.2.180.0070.00315.01
7.2.170.0090.00915.14
7.2.130.0000.01416.82
7.2.120.0040.00716.81
7.2.110.0000.01516.85
7.2.100.0000.00916.96
7.2.90.0030.01016.92
7.2.80.0080.00816.55
7.2.70.0060.00917.07
7.2.60.0080.00716.71
7.2.50.0060.00916.96
7.2.40.0030.01017.02
7.2.30.0040.01116.99
7.2.20.0040.01416.66
7.2.10.0040.00716.89
7.2.00.0070.00918.08
7.1.330.0000.01315.71
7.1.320.0090.00916.00
7.1.310.0060.00915.90
7.1.300.0060.00615.45
7.1.290.0070.00715.70
7.1.280.0000.01115.55
7.1.270.0030.01315.71
7.1.260.0080.00815.70
7.1.250.0000.01415.86
7.1.200.0030.00615.84
7.1.100.0030.01318.21
7.1.70.0080.00317.16
7.1.60.0140.01019.29
7.1.50.0100.00716.97
7.1.00.0000.07722.44
7.0.200.0000.01016.46
7.0.60.0070.07720.03
7.0.50.0070.08317.89
7.0.40.0100.08020.23
7.0.30.0370.07020.09
7.0.20.0370.07320.22
7.0.10.0030.04720.09
7.0.00.0030.08320.06
5.6.280.0000.04021.10
5.6.210.0100.08020.47
5.6.200.0030.04718.27
5.6.190.0000.05020.33
5.6.180.0200.04320.61
5.6.170.0230.07720.58
5.6.160.0000.05020.54
5.6.150.0100.06018.15
5.6.140.0030.06018.24
5.6.130.0030.04318.13
5.6.120.0130.03721.01
5.6.110.0100.06721.02
5.6.100.0030.04021.14
5.6.90.0070.04021.00
5.6.80.0130.05320.41
5.5.350.0000.08720.44
5.5.340.0170.07018.07
5.5.330.0100.08020.21
5.5.320.0000.09020.34
5.5.310.0330.07320.24
5.5.300.0030.04018.04
5.5.290.0030.07717.94
5.5.280.0030.09020.88
5.5.270.0070.08320.66
5.5.260.0070.07020.73
5.5.250.0070.05020.69
5.5.240.0130.03020.26
5.4.450.0270.06719.64
5.4.440.0400.05719.59
5.4.430.0200.06719.58
5.4.420.0130.06319.46
5.4.410.0200.05719.45
5.4.400.0200.06019.29
5.4.390.0230.06019.29
5.4.380.0230.05019.26
5.4.370.0230.06018.86
5.4.360.0330.04719.01
5.4.350.0270.04718.98
5.4.340.0300.06319.02
5.4.320.0330.05019.14
5.4.310.0230.05019.29
5.4.300.0200.05719.12
5.4.290.0300.05319.30
5.4.280.0200.06019.14
5.4.270.0230.05719.14
5.4.260.0230.05019.30
5.4.250.0200.06019.22
5.4.240.0370.06019.28
5.4.230.0370.04019.14
5.4.220.0230.06018.83
5.4.210.0370.06019.13
5.4.200.0230.05318.83
5.4.190.0300.04319.25
5.4.180.0230.06719.27
5.4.170.0470.07019.25
5.4.160.0370.06019.28
5.4.150.0300.05018.85
5.4.140.0300.05016.52
5.4.130.0200.05016.30
5.4.120.0400.05016.69
5.4.110.0370.04016.60
5.4.100.0230.05016.62
5.4.90.0330.06716.57
5.4.80.0200.05316.63
5.4.70.0000.07716.54
5.4.60.0000.03316.26
5.4.50.0030.05016.43
5.4.40.0100.04016.48
5.4.30.0300.07016.16
5.4.20.0200.07016.38

preferences:
52.37 ms | 401 KiB | 5 Q