3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen($a) { yield $a; yield $a + 1; } function yf() { yield from gen(1); yield from gen(10); } $g = yf(); $g->current();

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.0110.00416.75
8.3.50.0140.00921.99
8.3.40.0070.00718.67
8.3.30.0070.00718.61
8.3.20.0080.00020.29
8.3.10.0040.00423.65
8.3.00.0000.00819.27
8.2.180.0170.00018.16
8.2.170.0100.00322.96
8.2.160.0070.00721.94
8.2.150.0030.00525.66
8.2.140.0030.00524.66
8.2.130.0110.00019.00
8.2.120.0080.00026.35
8.2.110.0090.00321.95
8.2.100.0040.00817.80
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0050.00517.63
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0050.00319.46
8.2.30.0040.00420.49
8.2.20.0000.00817.67
8.2.10.0040.00418.05
8.2.00.0000.00817.92
8.1.280.0060.00825.92
8.1.270.0000.00822.24
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00622.48
8.1.230.0120.00017.64
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.38
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0080.00019.03
8.1.160.0040.00421.91
8.1.150.0050.00318.75
8.1.140.0000.00819.49
8.1.130.0040.00417.62
8.1.120.0030.00617.43
8.1.110.0070.00017.41
8.1.100.0000.00817.32
8.1.90.0000.00717.38
8.1.80.0070.00017.45
8.1.70.0030.00317.31
8.1.60.0030.00617.50
8.1.50.0040.00417.48
8.1.40.0040.00417.54
8.1.30.0030.00617.59
8.1.20.0080.00017.60
8.1.10.0040.00417.47
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.25
8.0.270.0000.00717.17
8.0.260.0000.00717.20
8.0.250.0000.00716.92
8.0.240.0030.00316.84
8.0.230.0030.00316.92
8.0.220.0080.00016.67
8.0.210.0040.00416.84
8.0.200.0030.00316.87
8.0.190.0060.00316.76
8.0.180.0000.00716.77
8.0.170.0040.00416.88
8.0.160.0000.00816.87
8.0.150.0000.00716.66
8.0.140.0070.00016.86
8.0.130.0030.00513.34
8.0.120.0030.00516.84
8.0.110.0000.00716.87
8.0.100.0070.00016.81
8.0.90.0040.00416.83
8.0.80.0030.01616.91
8.0.70.0030.00516.91
8.0.60.0040.00416.84
8.0.50.0040.00416.93
8.0.30.0130.00517.09
8.0.20.0100.01017.42
8.0.10.0040.00417.05
8.0.00.0070.01116.83
7.4.330.0000.00515.17
7.4.320.0040.00416.58
7.4.300.0060.00016.57
7.4.290.0040.00416.59
7.4.280.0040.00416.47
7.4.270.0000.00716.61
7.4.260.0000.00716.54
7.4.250.0040.00416.44
7.4.240.0040.00316.45
7.4.230.0070.00016.49
7.4.220.0060.00916.62
7.4.210.0070.01016.49
7.4.200.0070.00016.48
7.4.160.0140.00416.39
7.4.150.0090.00917.40
7.4.140.0150.00717.86
7.4.130.0100.00716.57
7.4.120.0140.00416.48
7.4.110.0110.00716.48
7.4.100.0030.02016.44
7.4.90.0190.00516.46
7.4.80.0120.00619.39
7.4.70.0110.00616.53
7.4.60.0100.00716.46
7.4.50.0000.00816.38
7.4.40.0060.01616.49
7.4.30.0140.00316.46
7.4.10.0000.01814.91
7.4.00.0070.00914.88
7.3.330.0000.00513.30
7.3.320.0030.00313.25
7.3.310.0070.00016.11
7.3.300.0030.00316.29
7.3.290.0050.01116.26
7.3.280.0070.01116.30
7.3.270.0110.00717.40
7.3.260.0080.00816.56
7.3.250.0090.01016.31
7.3.240.0100.00816.45
7.3.230.0090.01216.55
7.3.210.0110.00616.57
7.3.200.0170.00316.31
7.3.190.0130.00316.45
7.3.180.0120.00316.31
7.3.170.0090.01216.27
7.3.160.0140.00316.23
7.3.130.0040.01515.15
7.3.120.0070.00714.52
7.3.110.0000.02214.84
7.3.100.0070.00714.80
7.3.90.0110.00714.94
7.3.80.0130.00014.79
7.3.70.0000.01514.66
7.3.60.0030.01114.84
7.3.50.0140.00314.55
7.3.40.0070.01314.88
7.3.30.0070.01014.69
7.3.20.0100.00016.77
7.3.10.0120.00316.64
7.3.00.0030.00616.75
7.2.330.0160.00416.52
7.2.320.0100.00916.46
7.2.310.0080.00816.63
7.2.300.0000.01616.48
7.2.290.0120.00916.49
7.2.260.0100.01014.86
7.2.250.0070.00715.07
7.2.240.0040.01114.85
7.2.230.0000.01514.95
7.2.220.0090.00615.11
7.2.210.0060.01014.99
7.2.200.0000.01715.21
7.2.190.0000.01514.77
7.2.180.0000.02014.74
7.2.170.0040.01115.12
7.2.160.0030.01315.02
7.2.150.0030.01016.82
7.2.140.0070.00716.73
7.2.130.0040.01116.91
7.2.120.0100.00716.63
7.2.110.0080.00316.76
7.2.100.0070.00317.00
7.2.90.0060.00616.96
7.2.80.0020.01116.78
7.2.70.0040.01116.90
7.2.60.0120.01016.78
7.2.50.0000.00917.02
7.2.40.0070.01016.82
7.2.30.0090.00916.88
7.2.20.0040.01116.58
7.2.10.0070.01016.95
7.2.00.0050.00818.15
7.1.330.0090.00315.68
7.1.320.0070.00315.86
7.1.310.0060.00315.71
7.1.300.0050.00515.83
7.1.290.0040.01115.73
7.1.280.0030.01015.72
7.1.270.0030.01315.77
7.1.260.0070.00715.55
7.1.250.0070.01015.87
7.1.240.0040.01115.58
7.1.230.0040.00815.88
7.1.220.0000.00915.82
7.1.210.0030.01015.68
7.1.200.0070.00515.78
7.1.190.0030.00915.92
7.1.180.0070.00715.83
7.1.170.0040.00715.68
7.1.160.0060.01015.74
7.1.150.0030.01015.71
7.1.140.0000.01215.57
7.1.130.0070.00715.88
7.1.120.0080.00415.68
7.1.110.0100.00015.64
7.1.100.0030.01016.97
7.1.90.0110.00415.79
7.1.80.0070.00315.58
7.1.70.0080.00116.37
7.1.60.0150.00417.69
7.1.50.0030.00616.35
7.1.40.0000.01415.64
7.1.30.0060.00315.80
7.1.20.0080.00415.53
7.1.10.0030.00915.78
7.1.00.0020.04519.13
7.0.330.0110.00315.45
7.0.320.0030.01015.52
7.0.310.0090.00315.39
7.0.300.0040.01115.55
7.0.290.0070.00715.24
7.0.280.0060.00615.33
7.0.270.0040.00415.50
7.0.260.0000.00815.32
7.0.250.0090.00615.25
7.0.240.0070.00415.40
7.0.230.0040.00415.40
7.0.220.0040.00715.57
7.0.210.0040.00715.43
7.0.200.0060.00416.09
7.0.190.0090.00615.50
7.0.180.0000.01615.57
7.0.170.0060.00615.48
7.0.160.0080.00315.45
7.0.150.0030.00915.48
7.0.140.0000.01015.51
7.0.130.0030.00715.14
7.0.120.0060.00615.32
7.0.110.0080.00315.26
7.0.100.0060.00615.35
7.0.90.0040.00715.53
7.0.80.0040.01115.37
7.0.70.0100.00315.39
7.0.60.0050.03617.66
7.0.50.0070.04416.64
7.0.40.0070.04516.72
7.0.30.0220.03316.81
7.0.20.0150.03916.82
7.0.10.0070.04716.90
7.0.00.0090.02516.77
5.6.400.0060.00614.33
5.6.390.0060.00814.23
5.6.380.0040.01114.23
5.6.370.0100.00314.27
5.6.360.0100.00314.17
5.6.350.0060.01214.24
5.6.340.0110.00013.96
5.6.330.0000.01414.41
5.6.320.0110.00414.35
5.6.310.0040.01113.93
5.6.300.0040.00414.11
5.6.290.0060.00614.08
5.6.280.0010.02417.53
5.6.270.0060.00614.18
5.6.260.0100.00314.44
5.6.250.0040.00414.27
5.6.240.0070.00714.20
5.6.230.0060.00914.04
5.6.220.0040.00714.23
5.6.210.0100.03617.37
5.6.200.0100.04216.05
5.6.190.0050.02517.40
5.6.180.0130.04117.19
5.6.170.0150.02817.27
5.6.160.0080.04617.40
5.6.150.0090.03816.13
5.6.140.0080.04416.09
5.6.130.0030.02916.21
5.6.120.0110.02217.62
5.6.110.0070.02117.53
5.6.100.0070.04317.51
5.6.90.0040.04617.51
5.6.80.0050.03717.22
5.6.70.0060.00614.29
5.6.60.0030.01014.09
5.6.50.0030.00514.13
5.6.40.0040.00414.09
5.6.30.0060.00614.03
5.6.20.0090.00613.86
5.6.10.0030.00914.05
5.6.00.0120.00013.99
5.5.380.0080.00814.10
5.5.370.0000.01414.20
5.5.360.0040.01114.24
5.5.350.2140.02217.36
5.5.340.0070.03016.04
5.5.330.0050.03217.20
5.5.320.0200.02817.04
5.5.310.0230.02717.31
5.5.300.0040.02615.94
5.5.290.0100.02816.02
5.5.280.0080.04417.42
5.5.270.0020.04017.48
5.5.260.0120.03517.31
5.5.250.0050.04417.18
5.5.240.0130.03516.96
5.5.230.0030.00913.78
5.5.220.0030.00514.05
5.5.210.0040.00713.91
5.5.200.0030.00713.84
5.5.190.0150.00314.02
5.5.180.0000.01114.18
5.5.170.0080.00313.86
5.5.160.0030.01014.08
5.5.150.0030.00514.05
5.5.140.0040.01114.13
5.5.130.0030.01013.64
5.5.120.0070.00313.71
5.5.110.0090.00313.95
5.5.100.0120.00013.84
5.5.90.0000.00914.03
5.5.80.0000.01213.87
5.5.70.0000.01313.88
5.5.60.0040.01413.91
5.5.50.0030.01014.05
5.5.40.0040.00414.14
5.5.30.0030.01013.84
5.5.20.0030.00513.88
5.5.10.0120.00614.06
5.5.00.0040.00814.10

preferences:
53.96 ms | 401 KiB | 5 Q