3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen1() { $x = yield 1; yield 2; yield $x; } function gen2() { yield from gen1(); yield from gen1(); } function gen3() { yield from gen2(); } $g = gen3(); var_dump($g->current()); $g->send(100); while($g->valid()) { $val = $g->next(); var_dump($val); }

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.40.0110.00418.55
8.3.30.0100.00318.53
8.3.20.0040.00420.20
8.3.10.0040.00421.92
8.3.00.0050.00319.13
8.2.170.0060.01222.96
8.2.160.0100.00319.29
8.2.150.0080.00324.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00617.63
8.2.110.0080.00020.35
8.2.100.0040.00817.93
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00819.40
8.2.30.0000.00720.55
8.2.20.0050.00217.61
8.2.10.0070.00018.00
8.2.00.0040.00418.05
8.1.270.0040.00423.91
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00022.54
8.1.230.0090.00317.76
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.25
8.1.190.0080.00017.23
8.1.180.0030.00518.10
8.1.170.0040.00718.50
8.1.160.0040.00421.90
8.1.150.0070.00018.91
8.1.140.0040.00419.50
8.1.130.0030.00317.72
8.1.120.0000.00717.49
8.1.110.0000.00717.35
8.1.100.0040.00417.37
8.1.90.0000.00717.43
8.1.80.0070.00017.45
8.1.70.0000.00817.44
8.1.60.0050.00317.41
8.1.50.0080.00017.53
8.1.40.0040.00417.41
8.1.30.0040.00417.61
8.1.20.0050.00317.68
8.1.10.0050.00317.53
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.46
8.0.270.0000.00717.18
8.0.260.0030.00317.26
8.0.250.0030.00616.96
8.0.240.0000.00717.00
8.0.230.0070.00016.86
8.0.220.0000.00716.98
8.0.210.0070.00016.90
8.0.200.0040.00416.94
8.0.190.0040.00416.93
8.0.180.0030.00516.96
8.0.170.0050.00216.96
8.0.160.0030.00516.81
8.0.150.0040.00416.87
8.0.140.0040.00416.86
8.0.130.0040.00413.32
8.0.120.0070.00016.88
8.0.110.0000.00816.77
8.0.100.0040.00416.84
8.0.90.0040.00416.83
8.0.80.0130.00416.85
8.0.70.0000.00816.92
8.0.60.0070.00016.88
8.0.50.0040.00416.77
8.0.30.0090.01117.10
8.0.20.0090.01117.40
8.0.10.0040.00416.85
8.0.00.0080.01016.65
7.4.330.0020.00215.09
7.4.320.0040.00416.62
7.4.300.0030.00316.40
7.4.290.0050.00316.52
7.4.280.0000.00716.58
7.4.270.0000.00716.54
7.4.260.0070.00316.61
7.4.250.0040.00416.49
7.4.240.0030.00316.58
7.4.230.0070.00016.64
7.4.220.0090.00916.45
7.4.210.0140.00316.60
7.4.200.0030.00316.42
7.4.160.0130.00316.61
7.4.150.0070.01317.40
7.4.140.0170.00717.86
7.4.130.0060.01516.59
7.4.120.0070.01116.52
7.4.110.0060.01216.58
7.4.100.0090.00916.68
7.4.90.0070.01016.50
7.4.80.0100.01019.39
7.4.70.0100.00616.45
7.4.60.0030.01416.52
7.4.50.0000.00816.54
7.4.40.0030.01316.41
7.4.30.0110.00716.27
7.4.10.0060.01215.23
7.4.00.0020.01215.04
7.3.330.0030.00313.39
7.3.320.0050.00013.14
7.3.310.0070.00016.18
7.3.300.0040.00416.36
7.3.290.0090.00616.29
7.3.280.0080.00816.33
7.3.270.0100.00717.40
7.3.260.0060.00916.59
7.3.250.0100.00816.43
7.3.240.0090.00916.41
7.3.230.0070.01616.39
7.3.210.0090.01216.32
7.3.200.0120.01216.28
7.3.190.0120.00416.40
7.3.180.0070.01016.36
7.3.170.0120.00616.49
7.3.160.0100.00716.27
7.3.130.0090.00614.97
7.3.120.0070.01014.65
7.3.110.0030.01614.91
7.3.100.0060.00914.43
7.3.90.0090.00315.04
7.3.80.0030.01114.76
7.3.70.0070.00714.96
7.3.60.0120.00014.54
7.3.50.0000.00814.90
7.3.40.0060.00614.88
7.3.30.0000.00814.78
7.3.20.0030.01116.74
7.3.10.0070.01116.82
7.3.00.0030.00816.81
7.2.330.0160.00716.73
7.2.320.0090.00916.40
7.2.310.0130.00716.75
7.2.300.0070.01816.56
7.2.290.0130.00316.83
7.2.260.0110.00715.18
7.2.250.0070.01115.12
7.2.240.0110.00414.94
7.2.230.0030.01415.08
7.2.220.0000.00914.73
7.2.210.0040.01114.89
7.2.200.0000.01114.83
7.2.190.0040.00815.03
7.2.180.0060.00314.96
7.2.170.0150.00015.07
7.2.160.0060.00614.96
7.2.150.0000.02117.11
7.2.140.0110.00916.80
7.2.130.0050.01016.87
7.2.120.0060.00716.82
7.2.110.0100.00416.70
7.2.100.0070.00916.91
7.2.90.0080.00216.56
7.2.80.0070.01016.74
7.2.70.0070.00516.85
7.2.60.0100.00416.83
7.2.50.0080.00616.91
7.2.40.0090.00616.88
7.2.30.0080.00616.75
7.2.20.0050.01016.80
7.2.10.0050.01116.87
7.2.00.0020.01217.66
7.1.330.0040.01215.47
7.1.320.0030.01015.72
7.1.310.0030.01015.75
7.1.300.0050.00315.67
7.1.290.0090.00315.84
7.1.280.0040.00415.80
7.1.270.0040.01115.43
7.1.260.0040.01615.70
7.1.250.0050.00815.75
7.1.240.0090.00415.74
7.1.230.0050.00515.73
7.1.220.0060.01015.74
7.1.210.0080.00715.89
7.1.200.0020.01115.72
7.1.190.0030.01115.72
7.1.180.0040.00815.73
7.1.170.0030.00815.91
7.1.160.0020.01115.85
7.1.150.0060.00915.71
7.1.140.0020.00915.58
7.1.130.0050.00815.79
7.1.120.0070.00715.86
7.1.110.0050.01115.88
7.1.100.0040.00916.58
7.1.90.0030.01015.64
7.1.80.0080.00815.63
7.1.70.0030.01016.07
7.1.60.0080.00916.83
7.1.50.0060.00616.11
7.1.40.0090.00715.62
7.1.30.0080.00815.62
7.1.20.0040.00615.41
7.1.10.0100.00315.54
7.1.00.0060.02617.90
7.0.330.0060.00615.21
7.0.320.0050.00615.34
7.0.310.0080.00515.26
7.0.300.0020.01015.35
7.0.290.0020.01415.39
7.0.280.0000.01215.38
7.0.270.0070.00415.42
7.0.260.0080.00515.35
7.0.250.0050.00715.44
7.0.240.0060.00615.32
7.0.230.0080.00515.35
7.0.220.0070.00715.38
7.0.210.0060.00615.30
7.0.200.0070.00415.69
7.0.190.0030.00815.34
7.0.180.0050.00815.16
7.0.170.0050.00715.33
7.0.160.0070.00715.33
7.0.150.0040.00615.42
7.0.140.0050.00715.46
7.0.130.0050.00515.40
7.0.120.0040.00815.11
7.0.110.0080.00615.38
7.0.100.0060.00415.36
7.0.90.0020.01215.24
7.0.80.0060.00315.34
7.0.70.0060.00715.42
7.0.60.0030.02616.82
7.0.50.0070.03216.20
7.0.40.0060.02015.61
7.0.30.0050.01915.72
7.0.20.0090.02815.51
7.0.10.0120.01815.66
7.0.00.0100.03215.70
5.6.400.0080.00314.51
5.6.390.0000.00914.43
5.6.380.0060.00714.04
5.6.370.0040.00914.19
5.6.360.0100.00314.27
5.6.350.0050.01014.11
5.6.340.0070.00614.04
5.6.330.0070.00814.11
5.6.320.0070.00513.99
5.6.310.0080.00713.92
5.6.300.0050.00913.95
5.6.290.0050.00913.92
5.6.280.0050.01516.30
5.6.270.0050.00814.04
5.6.260.0110.00314.04
5.6.250.0060.00513.92
5.6.240.0030.00814.10
5.6.230.0050.00814.02
5.6.220.0030.01214.28
5.6.210.0030.02716.18
5.6.200.0040.02415.43
5.6.190.0040.02516.13
5.6.180.0200.02716.27
5.6.170.0100.02016.08
5.6.160.0090.03116.22
5.6.150.0050.01715.34
5.6.140.0100.02815.44
5.6.130.0050.03315.44
5.6.120.0060.01916.33
5.6.110.0070.03016.43
5.6.100.0050.03316.35
5.6.90.0080.03216.38
5.6.80.0050.02716.17
5.6.70.0060.00713.97
5.6.60.0070.00713.94
5.6.50.0060.00714.06
5.6.40.0020.00614.04
5.6.30.0030.00814.10
5.6.20.0040.00614.07
5.6.10.0070.00413.98
5.6.00.0040.00914.04
5.5.380.0040.00512.55
5.5.370.0040.00612.58
5.5.360.0030.00812.56
5.5.350.0130.02415.28
5.5.340.0050.02414.37
5.5.330.0100.02015.29
5.5.320.0100.02815.14
5.5.310.0090.02715.37
5.5.300.0050.01714.34
5.5.290.0020.03114.49
5.5.280.0100.02215.42
5.5.270.0050.03115.39
5.5.260.0050.03415.26
5.5.250.0030.02115.31
5.5.240.0040.02315.20
5.5.230.0060.00312.48
5.5.220.0040.00412.53
5.5.210.0060.00712.56
5.5.200.0020.01112.49
5.5.190.0060.00512.50
5.5.180.0020.01012.67
5.5.170.0050.00512.50
5.5.160.0000.01012.63
5.5.150.0060.00412.48
5.5.140.0040.00612.44
5.5.130.0020.00612.55
5.5.120.0040.00512.63
5.5.110.0020.01012.57
5.5.100.0000.01012.54
5.5.90.0020.00812.61
5.5.80.0040.00812.51
5.5.70.0010.00812.54
5.5.60.0070.00612.63
5.5.50.0070.00512.52
5.5.40.0030.00712.63
5.5.30.0060.00812.49
5.5.20.0030.00812.61
5.5.10.0030.00612.59
5.5.00.0090.00212.46
5.4.450.0110.02114.29
5.4.440.0080.02114.23
5.4.430.0140.02214.22
5.4.420.0120.01614.17
5.4.410.0060.02214.23
5.4.400.0060.02114.17
5.4.390.0020.02514.17
5.4.380.0090.02414.07
5.4.370.0090.01914.22
5.4.360.0090.02114.06
5.4.350.0100.01914.17
5.4.340.0080.02114.06
5.4.330.0070.00411.68
5.4.320.0090.02214.22
5.4.310.0060.02514.21
5.4.300.0080.02014.17
5.4.290.0070.02314.20
5.4.280.0040.02414.22
5.4.270.0090.02014.07
5.4.260.0100.02114.19
5.4.250.0120.01814.22
5.4.240.0100.01914.21
5.4.230.0110.01814.17
5.4.220.0130.02714.20
5.4.210.0160.02214.22
5.4.200.0160.01814.20
5.4.190.0100.01914.07
5.4.180.0080.02214.19
5.4.170.0110.02014.16
5.4.160.0130.01814.23
5.4.150.0050.02414.20
5.4.140.0110.02113.36
5.4.130.0100.01713.36
5.4.120.0060.02313.27
5.4.110.0080.02013.28
5.4.100.0110.02613.31
5.4.90.0090.02013.34
5.4.80.0080.02113.29
5.4.70.0090.01813.25
5.4.60.0070.02013.18
5.4.50.0100.02113.32
5.4.40.0070.02213.28
5.4.30.0090.02113.29
5.4.20.0090.02013.25
5.4.10.0140.01313.28
5.4.00.0100.01813.07

preferences:
60.93 ms | 400 KiB | 5 Q