3v4l.org

run code in 300+ PHP versions simultaneously
<?php exit(); $countMap = (function(){ yield "a" => 5; yield "b" => 2; yield "c" => 3; })(); // emits "C" times the element "K" from the given Iterator<K, C> $iterator = new MultiplyIterator($countMap); // better name for this? $iterator->rewind(); assert($iterator->current() === "a"); $iterator->next(); assert($iterator->current() === "a"); $iterator->next(); assert($iterator->current() === "a"); $iterator->next(); assert($iterator->current() === "a"); $iterator->next(); assert($iterator->current() === "a"); $iterator->next(); assert($iterator->current() === "b"); $iterator->next(); assert($iterator->current() === "b"); $iterator->next(); assert($iterator->current() === "c"); $iterator->next(); assert($iterator->current() === "c"); $iterator->next(); assert($iterator->current() === "c"); $iterator->next();

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.4.130.0070.00217.68
8.4.120.0120.00820.29
8.4.110.0110.00822.36
8.4.100.0140.00717.82
8.4.90.0100.00918.65
8.4.80.0140.00619.47
8.4.70.0030.00517.75
8.4.60.0100.00617.61
8.4.50.0130.00717.56
8.4.40.0130.00619.13
8.4.30.0060.00317.75
8.4.20.0030.00617.75
8.4.10.0030.00619.50
8.3.260.0030.00516.48
8.3.250.0050.00318.76
8.3.240.0110.00816.68
8.3.230.0130.00816.83
8.3.220.0120.00618.64
8.3.210.0110.00816.48
8.3.200.0080.01216.62
8.3.190.0120.00916.74
8.3.180.0060.00216.75
8.3.170.0090.00916.41
8.3.160.0140.00318.29
8.3.150.0090.00917.00
8.3.140.0060.00320.68
8.3.130.0030.00618.31
8.3.120.0060.00318.96
8.3.110.0060.00320.94
8.3.100.0080.00018.43
8.3.90.0080.00026.77
8.3.80.0110.00016.50
8.3.70.0060.00916.58
8.3.60.0130.00918.43
8.3.50.0140.00522.08
8.3.40.0030.01418.82
8.3.30.0080.00818.50
8.3.20.0040.00421.88
8.3.10.0080.00020.29
8.3.00.0080.00020.93
8.2.290.0110.00420.11
8.2.280.0030.00518.56
8.2.270.0160.00316.46
8.2.260.0100.00716.54
8.2.250.0040.00416.54
8.2.240.0060.00918.71
8.2.230.0080.00022.58
8.2.220.0080.00024.06
8.2.210.0030.00726.77
8.2.200.0040.00418.04
8.2.190.0080.00816.58
8.2.180.0090.00625.92
8.2.170.0110.00418.92
8.2.160.0130.00320.35
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0040.00419.73
8.2.120.0090.00026.35
8.2.110.0030.00720.88
8.2.100.0000.01117.78
8.2.90.0080.00019.39
8.2.80.0000.00817.97
8.2.70.0080.00017.80
8.2.60.0060.00318.04
8.2.50.0040.00418.10
8.2.40.0070.00020.58
8.2.30.0000.00820.90
8.2.20.0050.00217.93
8.2.10.0030.00518.03
8.2.00.0080.00018.19
8.1.330.0110.00721.95
8.1.320.0100.01216.09
8.1.310.0080.00416.65
8.1.300.0130.00619.69
8.1.290.0070.00330.84
8.1.280.0180.00325.92
8.1.270.0000.00823.71
8.1.260.0000.00726.35
8.1.250.0090.00628.09
8.1.240.0090.00022.65
8.1.230.0040.00720.87
8.1.220.0080.00017.74
8.1.210.0040.00418.83
8.1.200.0050.00317.22
8.1.190.0040.00417.13
8.1.180.0000.00718.10
8.1.170.0080.00018.52
8.1.160.0040.00418.73
8.1.150.0000.00720.29
8.1.140.0030.00519.39
8.1.130.0000.00719.00
8.1.120.0040.00417.28
8.1.110.0000.00717.22
8.1.100.0030.00417.23
8.1.90.0030.00617.25
8.1.80.0040.00417.39
8.1.70.0000.00717.38
8.1.60.0060.00317.39
8.1.50.0050.00317.37
8.1.40.0040.00417.48
8.1.30.0040.00417.46
8.1.20.0040.00417.56
8.1.10.0000.00717.44
8.1.00.0030.00617.39
8.0.300.0040.00419.78
8.0.290.0060.00316.75
8.0.280.0000.00718.30
8.0.270.0050.00317.06
8.0.260.0030.00617.22
8.0.250.0070.00016.97
8.0.240.0050.00516.95
8.0.230.0030.00316.83
8.0.220.0000.00816.86
8.0.210.0030.00316.88
8.0.200.0060.00016.90
8.0.190.0050.00316.92
8.0.180.0070.00316.86
8.0.170.0000.01016.88
8.0.160.0040.00416.94
8.0.150.0000.00716.69
8.0.140.0000.00716.80
8.0.130.0030.00613.28
8.0.120.0040.00416.83
8.0.110.0050.00216.71
8.0.100.0090.00016.72
8.0.90.0040.00416.84
8.0.80.0130.00716.87
8.0.70.0040.00416.86
8.0.60.0050.00316.84
8.0.50.0000.00716.82
8.0.30.0100.00717.04
8.0.20.0080.01117.40
8.0.10.0020.00516.89
8.0.00.0120.00617.00
7.4.330.0050.00015.55
7.4.320.0000.00616.47
7.4.300.0000.00616.55
7.4.290.0040.00416.45
7.4.280.0080.00016.45
7.4.270.0000.00716.36
7.4.260.0040.00416.48
7.4.250.0030.00316.39
7.4.240.0000.00716.42
7.4.230.0030.00316.45
7.4.220.0160.00916.52
7.4.210.0080.01016.43
7.4.200.0000.00816.60
7.4.160.0110.00516.35
7.4.150.0000.01817.40
7.4.140.0070.01117.86
7.4.130.0110.00516.45
7.4.120.0120.00516.46
7.4.110.0090.00916.50
7.4.100.0180.00316.51
7.4.90.0110.00716.50
7.4.80.0060.01319.39
7.4.70.0090.00916.42
7.4.60.0120.00616.18
7.4.50.0060.00916.20
7.4.40.0080.00816.48
7.4.30.0060.01116.24
7.4.00.0070.01015.04
7.3.330.0000.00513.27
7.3.320.0020.00213.27
7.3.310.0000.00716.32
7.3.300.0030.00316.14
7.3.290.0030.00316.26
7.3.280.0110.00816.25
7.3.270.0140.00317.40
7.3.260.0060.01216.40
7.3.250.0070.01116.30
7.3.240.0110.00616.31
7.3.230.0080.00816.28
7.3.210.0100.00716.18
7.3.200.0120.00916.40
7.3.190.0080.01316.45
7.3.180.0060.01116.48
7.3.170.0060.01116.37
7.3.160.0070.01016.33
7.3.120.0060.00914.95
7.3.110.0100.00614.73
7.3.100.0030.01014.29
7.3.90.0110.00414.81
7.3.80.0080.00814.75
7.3.70.0080.00314.81
7.3.60.0030.01014.75
7.3.50.0030.01014.46
7.3.40.0000.01514.79
7.3.30.0110.00314.79
7.3.20.0100.00316.33
7.3.10.0040.00716.51
7.3.00.0070.00716.41
7.2.330.0120.00916.52
7.2.320.0070.01016.66
7.2.310.0100.01316.63
7.2.300.0110.00616.67
7.2.290.0100.01316.55
7.2.240.0060.01014.91
7.2.230.0130.00314.79
7.2.220.0100.00714.70
7.2.210.0070.00715.05
7.2.200.0030.01314.87
7.2.190.0060.00614.80
7.2.180.0030.01314.69
7.2.170.0000.01614.93
7.2.160.0030.01214.94
7.2.150.0090.00616.58
7.2.140.0070.01016.86
7.2.130.0090.00616.86
7.2.120.0000.01616.61
7.2.110.0040.01216.81
7.2.100.0090.00616.83
7.2.90.0070.00716.70
7.2.80.0130.00316.84
7.2.70.0030.01316.70
7.2.60.0050.01016.55
7.2.50.0090.00616.93
7.2.40.0000.01316.62
7.2.30.0030.01316.98
7.2.20.0060.00616.68
7.2.10.0030.01216.75
7.2.00.0090.00818.03
7.1.330.0080.00415.38
7.1.320.0030.01315.73
7.1.310.0030.01015.52
7.1.300.0030.01015.64
7.1.290.0070.00715.80
7.1.280.0000.01515.32
7.1.270.0030.01215.46
7.1.260.0030.01015.36
7.1.250.0070.01015.57
7.1.200.0090.00315.55
7.1.100.0030.01017.58
7.1.70.0040.00417.16
7.1.60.0030.00916.86
7.1.50.0060.00916.83
7.1.40.0040.01116.38
7.1.30.0070.01316.61
7.1.20.0000.01016.71
7.1.10.0050.00316.58
7.1.00.0040.00416.69
7.0.200.0030.01316.73
7.0.190.0000.00916.29
7.0.180.0060.00615.93
7.0.170.0030.01416.39
7.0.160.0040.00416.07
7.0.150.0030.00616.03
7.0.140.0000.00716.27
7.0.130.0030.00516.45
7.0.120.0000.00816.46
7.0.110.0030.00316.02
7.0.100.0000.01116.11
7.0.90.0000.00716.15
7.0.80.0000.01016.21
7.0.70.0000.01016.26
7.0.60.0000.00815.80
7.0.50.0050.00316.39
7.0.40.0030.00614.77
7.0.30.0060.00314.77
7.0.20.0030.00514.77
7.0.10.0040.00414.77
7.0.00.0070.00014.77
5.6.300.0000.04320.88
5.6.290.0030.04420.80
5.6.280.0070.03721.07
5.6.270.0000.04820.87
5.6.260.0000.04321.00
5.6.250.0000.06121.00
5.6.240.0070.04320.84
5.6.230.0030.04420.95
5.6.220.0000.04220.84
5.6.210.0070.05120.64
5.6.200.0030.04420.84
5.6.190.0070.04020.94
5.6.180.0030.04521.05
5.6.170.0070.03720.96
5.6.160.0000.04820.93
5.6.150.0360.04021.04
5.6.140.0030.04620.83
5.6.130.0030.04620.77
5.6.120.0070.04020.82
5.6.110.0070.04420.82
5.6.100.0070.03720.85
5.6.90.0000.04320.92
5.6.80.0030.03820.25
5.6.70.0070.03620.40
5.6.60.0160.06820.21
5.6.50.0030.04420.32
5.6.40.0200.03720.16
5.6.30.0030.03820.41
5.6.20.0000.04220.21
5.6.10.0030.04020.30
5.6.00.0030.04320.36
5.5.380.0030.03717.48
5.5.370.0070.03917.64
5.5.360.0000.05217.40
5.5.350.0000.04217.56
5.5.340.0100.03318.07
5.5.330.0000.04418.01
5.5.320.0200.04018.10
5.5.310.0070.04218.12
5.5.300.0040.04618.03
5.5.290.0170.04818.13
5.5.280.0030.04217.86
5.5.270.0030.04018.09
5.5.260.0060.03818.11
5.5.250.0100.04117.56
5.5.240.0000.06617.39
5.5.230.0000.04517.22
5.5.220.0000.05517.46
5.5.210.0030.04317.44
5.5.200.0100.04717.36
5.5.190.0000.05317.35
5.5.180.0030.03717.43
5.5.160.0030.04417.36
5.5.150.0100.04217.19
5.5.140.0000.04217.45
5.5.130.0030.04017.41
5.5.120.0030.03617.37
5.5.110.0060.03517.31
5.5.100.0000.04617.35
5.5.90.0030.04217.28
5.5.80.0030.03816.98
5.5.70.0070.03817.01
5.5.60.0030.04917.27
5.5.50.0070.04317.37
5.5.40.0030.04017.25
5.5.30.0070.06517.42
5.5.20.0030.04217.09
5.5.10.0030.03817.24
5.5.00.0000.04617.42
5.4.450.0030.05619.40
5.4.440.0030.03819.40
5.4.430.0030.04419.53
5.4.420.0030.06819.39
5.4.410.0030.03619.39
5.4.400.0140.04519.00
5.4.390.0070.04519.08
5.4.380.0000.04219.20
5.4.370.0070.03618.92
5.4.360.0030.03818.92
5.4.350.0060.03219.08
5.4.340.0030.04419.08
5.4.320.0030.04319.07
5.4.310.0070.03718.91
5.4.300.0000.03819.07
5.4.290.0030.03519.08
5.4.280.0030.04019.13
5.4.270.0030.03619.08
5.4.260.0000.04919.14
5.4.250.0030.04019.06
5.4.240.0040.03918.88
5.4.230.0030.03819.05
5.4.220.0030.03719.20
5.4.210.0070.04619.07
5.4.200.0070.05619.07
5.4.190.0040.04319.15
5.4.180.0070.03719.22
5.4.170.0000.04819.19
5.4.160.0070.04119.05
5.4.150.0030.05118.93
5.4.140.0000.03716.65
5.4.130.0070.04016.64
5.4.120.0000.05216.68
5.4.110.0070.03616.48
5.4.100.0000.04016.63
5.4.90.0100.02916.70
5.4.80.0000.04516.73
5.4.70.0030.03616.69
5.4.60.0070.03416.68
5.4.50.0000.04016.63
5.4.40.0000.04616.67
5.4.30.0030.03616.45
5.4.20.0070.03116.55
5.4.10.0070.03416.72
5.4.00.0000.04016.18
5.3.290.0030.03614.95
5.3.280.0030.03614.83
5.3.270.0000.04414.96
5.3.260.0000.03914.77
5.3.250.0060.03814.89
5.3.240.0070.04414.77
5.3.230.0000.04014.95
5.3.220.0100.02814.77
5.3.210.0070.04614.77
5.3.200.0030.03614.82
5.3.190.0100.04914.83
5.3.180.0000.04514.86
5.3.170.0030.04214.82
5.3.160.0070.06014.92
5.3.150.0170.04114.77
5.3.140.0000.04414.79
5.3.130.0070.03414.83
5.3.120.0030.04514.77
5.3.110.0070.03614.83
5.3.100.0000.04114.77
5.3.90.0030.04314.77
5.3.80.0000.03714.77
5.3.70.0100.04814.77
5.3.60.0070.03314.77
5.3.50.0000.04014.77
5.3.40.0030.03514.77
5.3.30.0000.03814.77
5.3.20.0000.03614.77
5.3.10.0030.04514.77
5.3.00.0060.03114.77
5.2.170.0000.03214.77
5.2.160.0000.03114.77
5.2.150.0000.03214.77
5.2.140.0030.02714.77
5.2.130.0040.02614.77
5.2.120.0000.03314.77
5.2.110.0030.02714.77
5.2.100.0000.03214.77
5.2.90.0060.02514.77
5.2.80.0000.04114.77
5.2.70.0030.04014.77
5.2.60.0030.02914.77
5.2.50.0060.02614.77
5.2.40.0070.03414.77
5.2.30.0000.04014.77
5.2.20.0000.03714.77
5.2.10.0030.02614.77
5.2.00.0000.02914.77
5.1.60.0000.02814.77
5.1.50.0000.02614.77
5.1.40.0030.02414.77
5.1.30.0000.03314.77
5.1.20.0030.02814.77
5.1.10.0070.02314.77
5.1.00.0060.02914.77
5.0.50.0030.02414.77
5.0.40.0030.02014.77
5.0.30.0070.03614.77
5.0.20.0000.02214.77
5.0.10.0000.02614.77
5.0.00.0000.03314.77
4.4.90.0030.01814.77
4.4.80.0000.01614.77
4.4.70.0070.01814.77
4.4.60.0030.01314.77
4.4.50.0000.01614.77
4.4.40.0040.02114.77
4.4.30.0000.01614.77
4.4.20.0030.01514.77
4.4.10.0030.01614.77
4.4.00.0030.02714.77
4.3.110.0040.01414.77
4.3.100.0030.01414.77
4.3.90.0030.01314.77
4.3.80.0030.02414.77
4.3.70.0000.01514.77
4.3.60.0060.00914.77
4.3.50.0000.02014.77
4.3.40.0040.02214.77
4.3.30.0100.01414.77
4.3.20.0000.01914.77
4.3.10.0000.01614.77
4.3.00.0000.01614.77

preferences:
121.91 ms | 403 KiB | 5 Q