3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen() { yield 0; yield 1; yield 2; } $gen = (function(){ $foo = gen(); $foo->rewind(); $foo->valid(); yield $foo->key() => $foo->current(); $foo->next(); $foo->rewind(); $foo->valid(); yield $foo->key() => $foo->current(); yield from $foo; })(); foreach($gen as $k => $v){ echo $k . " => " . $v . "\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.0090.00618.30
8.3.50.0060.00918.12
8.3.40.0110.01118.76
8.3.30.0140.00018.80
8.3.20.0020.00522.51
8.3.10.0040.00423.61
8.3.00.0040.00420.58
8.2.180.0110.00418.43
8.2.170.0070.00718.92
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0080.00026.16
8.2.110.0050.00521.00
8.2.100.0040.00719.63
8.2.90.0000.00819.05
8.2.80.0090.00017.97
8.2.70.0050.00317.75
8.2.60.0030.00517.80
8.2.50.0040.00418.07
8.2.40.0050.00318.16
8.2.30.0060.00318.14
8.2.20.0020.00518.05
8.2.10.0040.00418.93
8.2.00.0040.00419.26
8.1.280.0100.00725.92
8.1.270.0040.00420.73
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00720.81
8.1.230.0120.00021.95
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.55
8.1.160.0060.00318.90
8.1.150.0000.00718.82
8.1.140.0070.00018.81
8.1.130.0040.00420.17
8.1.120.0040.00417.46
8.1.110.0000.00717.38
8.1.100.0070.00317.48
8.1.90.0050.00317.49
8.1.80.0000.00717.50
8.1.70.0100.00017.47
8.1.60.0080.00017.55
8.1.50.0040.00417.58
8.1.40.0040.00417.43
8.1.30.0090.00017.66
8.1.20.0040.00417.67
8.1.10.0000.01117.45
8.1.00.0000.00817.48
8.0.300.0060.00318.77
8.0.290.0050.00216.63
8.0.280.0040.00418.46
8.0.270.0030.00517.43
8.0.260.0040.00420.07
8.0.250.0030.00717.01
8.0.240.0080.00016.91
8.0.230.0080.00016.93
8.0.220.0080.00016.89
8.0.210.0030.00316.92
8.0.200.0000.00716.99
8.0.190.0000.00917.06
8.0.180.0040.00417.04
8.0.170.0030.00616.98
8.0.160.0000.00816.86
8.0.150.0040.00416.93
8.0.140.0050.00216.96
8.0.130.0040.00413.43
8.0.120.0040.00416.91
8.0.110.0040.00416.94
8.0.100.0040.00416.78
8.0.90.0030.00616.97
8.0.80.0090.00916.95
8.0.70.0040.00416.83
8.0.60.0070.00016.79
8.0.50.0040.00416.80
8.0.30.0070.01017.02
8.0.20.0090.00916.99
8.0.10.0000.00716.89
8.0.00.0090.00916.79
7.4.330.0060.00015.55
7.4.320.0080.00016.55
7.4.300.0000.00616.65
7.4.290.0040.00416.46
7.4.280.0030.00316.41
7.4.270.0000.00716.43
7.4.260.0030.00313.21
7.4.250.0050.00316.55
7.4.240.0000.00716.52
7.4.230.0030.00316.54
7.4.220.0030.00416.44
7.4.210.0080.01016.61
7.4.200.0040.00416.70
7.4.130.0130.00316.70
7.4.120.0030.01416.48
7.4.110.0070.01116.44
7.4.100.0080.00816.44
7.4.90.0100.00716.50
7.4.80.0120.01219.39
7.4.70.0090.01216.69
7.4.60.0090.00916.54
7.4.50.0100.01016.59
7.4.40.0100.00716.53
7.4.00.0060.01114.89
7.3.330.0040.00716.23
7.3.320.0050.00013.37
7.3.310.0020.00516.37
7.3.300.0070.00016.36
7.3.290.0090.00816.36
7.3.260.0120.01016.52
7.3.240.0080.01016.48
7.3.230.0080.01116.31
7.3.210.0070.01116.51
7.3.200.0040.01216.44
7.3.190.0080.00816.33
7.3.180.0130.00316.63
7.3.170.0040.01516.37
7.3.160.0120.00316.39
7.3.120.0130.00314.86
7.3.110.0080.01214.71
7.3.100.0120.00514.88
7.3.90.0010.01214.84
7.3.80.0050.01114.76
7.3.70.0060.00614.90
7.3.60.0090.00414.76
7.3.50.0080.00514.84
7.3.40.0030.01214.71
7.3.30.0050.01214.91
7.3.20.0050.00815.80
7.3.10.0040.00915.72
7.3.00.0070.00515.69
7.2.330.0140.00316.64
7.2.320.0030.01516.68
7.2.310.0100.01316.49
7.2.300.0070.01016.77
7.2.290.0100.01316.77
7.2.250.0040.01514.84
7.2.240.0060.01215.11
7.2.230.0090.00715.07
7.2.220.0050.00914.91
7.2.210.0100.00714.93
7.2.200.0070.00715.11
7.2.190.0040.00815.04
7.2.180.0050.01015.02
7.2.170.0050.01114.94
7.2.160.0000.01314.98
7.2.150.0030.01015.19
7.2.140.0030.01015.19
7.2.130.0090.00615.18
7.2.120.0190.00315.20
7.2.110.0090.00615.02
7.2.100.0060.00715.23
7.2.90.0070.00715.16
7.2.80.0070.01014.91
7.2.70.0150.00015.05
7.2.60.0120.00415.22
7.2.50.0090.00414.91
7.2.40.0090.00615.15
7.2.30.0080.00615.21
7.2.20.0040.01115.11
7.2.10.0070.00715.24
7.2.00.0040.01115.22
7.1.330.0070.00914.83
7.1.320.0060.00614.83
7.1.310.0050.01014.76
7.1.300.0060.00414.76
7.1.290.0030.00914.60
7.1.280.0130.00514.92
7.1.270.0100.00514.86
7.1.260.0070.00714.97
7.1.250.0070.00713.92

preferences:
69.42 ms | 401 KiB | 5 Q