3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { final public function test() { $result = ( function() { yield 1; yield 2; yield 3; yield 4; yield 5; } ); return $result(); } } $test = new test(); $generator = $test->test(); foreach($generator as $value) { echo $value."\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.0160.00618.30
8.3.50.0090.01218.31
8.3.40.0040.01218.71
8.3.30.0160.00018.89
8.3.20.0080.00018.97
8.3.10.0050.00323.63
8.3.00.0030.00523.67
8.2.180.0070.01116.38
8.2.170.0070.00722.96
8.2.160.0090.00619.07
8.2.150.0110.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00020.43
8.2.120.0040.00426.35
8.2.110.0060.00321.06
8.2.100.0000.01117.91
8.2.90.0040.00419.41
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0000.00918.04
8.2.50.0050.00318.10
8.2.40.0020.00519.27
8.2.30.0040.00422.27
8.2.20.0000.00718.06
8.2.10.0030.00617.93
8.2.00.0100.00019.36
8.1.280.0090.00925.92
8.1.270.0040.01222.16
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.61
8.1.230.0110.00020.97
8.1.220.0040.00417.74
8.1.210.0030.00518.95
8.1.200.0000.00917.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0070.00018.88
8.1.160.0050.00318.88
8.1.150.0070.00018.88
8.1.140.0040.00419.00
8.1.130.0070.00019.07
8.1.120.0040.00417.43
8.1.110.0070.00017.50
8.1.100.0000.00717.49
8.1.90.0080.00017.46
8.1.80.0040.00417.45
8.1.70.0000.00817.34
8.1.60.0050.00317.58
8.1.50.0040.00717.55
8.1.40.0040.00417.55
8.1.30.0080.00017.66
8.1.20.0040.00417.60
8.1.10.0070.00417.62
8.1.00.0000.00717.52
8.0.300.0000.00719.88
8.0.290.0080.00016.75
8.0.280.0000.00818.45
8.0.270.0040.00417.13
8.0.260.0030.00317.16
8.0.250.0030.00316.80
8.0.240.0030.00316.93
8.0.230.0040.00416.91
8.0.220.0070.00316.78
8.0.210.0030.00316.76
8.0.200.0000.00716.98
8.0.190.0090.00016.88
8.0.180.0030.00516.90
8.0.170.0060.00316.87
8.0.160.0040.00316.78
8.0.150.0000.00716.88
8.0.140.0050.00216.79
8.0.130.0000.00613.27
8.0.120.0080.00016.84
8.0.110.0080.00016.95
8.0.100.0040.00416.91
8.0.90.0030.00316.84
8.0.80.0020.01416.86
8.0.70.0040.00416.92
8.0.60.0000.00716.95
8.0.50.0070.00016.88
8.0.30.0100.00717.13
8.0.20.0130.00617.40
8.0.10.0030.00516.81
8.0.00.0100.00716.67
7.4.330.0050.00015.55
7.4.320.0000.00716.50
7.4.300.0030.00316.50
7.4.290.0090.00016.64
7.4.280.0030.00716.59
7.4.270.0060.00316.48
7.4.260.0030.00316.50
7.4.250.0000.00716.51
7.4.240.0000.00716.55
7.4.230.0030.00416.61
7.4.220.0070.00016.39
7.4.210.0090.00716.52
7.4.200.0030.00616.49
7.4.160.0120.00516.54
7.4.140.0120.01017.86
7.4.130.0110.00716.62
7.4.120.0120.00716.59
7.4.110.0100.00716.76
7.4.100.0000.01716.63
7.4.90.0080.01816.58
7.4.80.0120.00919.39
7.4.70.0060.01016.59
7.4.60.0070.01016.55
7.4.50.0030.01216.57
7.4.40.0100.01316.46
7.4.00.0090.00315.05
7.3.330.0000.00513.21
7.3.320.0060.00013.11
7.3.310.0030.00316.46
7.3.300.0070.00016.27
7.3.290.0030.00316.40
7.3.280.0060.00916.35
7.3.260.0110.00716.57
7.3.240.0130.00616.50
7.3.230.0100.00616.50
7.3.210.0120.00916.42
7.3.200.0060.00916.53
7.3.190.0080.00816.34
7.3.180.0100.00716.54
7.3.170.0060.00916.32
7.3.160.0110.00616.57
7.3.10.0120.00416.79
7.3.00.0130.00016.77
7.2.330.0140.00916.82
7.2.320.0100.00716.77
7.2.310.0090.00616.64
7.2.300.0100.01016.67
7.2.290.0110.00616.59
7.2.130.0100.00317.03
7.2.120.0170.00716.89
7.2.110.0180.00916.83
7.2.100.0090.00916.91
7.2.90.0080.01217.05
7.2.80.0890.00715.74
7.2.70.0890.01015.79
7.2.60.1000.00315.84
7.2.50.1570.01115.82
7.2.40.1430.00915.76
7.2.30.1700.01215.94
7.2.20.1540.01316.03
7.2.10.0310.01016.05
7.2.00.1600.01415.92
7.1.250.0110.00615.58
7.1.190.1680.01013.64
7.1.180.2430.01013.26
7.1.170.2740.01013.29
7.1.160.2700.00713.37
7.1.150.1940.01013.93
7.1.140.3580.00013.82
7.1.130.1770.01013.71
7.1.120.2450.01013.70
7.1.110.2770.01313.74
7.1.100.1810.00613.76
7.1.90.2190.00613.80
7.1.80.2310.00313.47
7.1.70.3500.01013.46
7.1.60.3910.00331.63
7.1.50.3600.01331.75
7.1.40.3620.01631.76
7.1.30.4750.01031.71
7.1.20.4500.00331.39
7.1.10.4760.00313.29
7.1.00.4350.00613.77

preferences:
61.69 ms | 400 KiB | 5 Q