3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IteratorIteratorEx { function rewind() { echo __METHOD__."\n"; IteratorIterator::rewind(); } } $it = new IteratorIteratorEx(new ArrayObject([4,5,6])); foreach($it as $v) { print_r($v); }

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.0080.01218.28
8.3.50.0130.00722.93
8.3.40.0090.00618.68
8.3.30.0180.00018.78
8.3.20.0000.00720.30
8.3.10.0000.00923.57
8.3.00.0080.00019.04
8.2.180.0130.00716.38
8.2.170.0040.01122.96
8.2.160.0140.00320.29
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00826.16
8.2.120.0030.00620.91
8.2.110.0090.00022.02
8.2.100.0090.00617.81
8.2.90.0090.00017.75
8.2.80.0030.00617.97
8.2.70.0030.00617.80
8.2.60.0000.00817.93
8.2.50.0080.00018.10
8.2.40.0000.00920.65
8.2.30.0000.00718.04
8.2.20.0000.00717.52
8.2.10.0050.00218.11
8.2.00.0040.00417.72
8.1.280.0140.01025.92
8.1.270.0000.00923.77
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0110.00019.18
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0060.00617.36
8.1.190.0070.00417.23
8.1.180.0030.00618.10
8.1.170.0000.00818.65
8.1.160.0000.00822.00
8.1.150.0040.00418.94
8.1.140.0070.00017.31
8.1.130.0000.00717.72
8.1.120.0050.00217.34
8.1.110.0030.00517.36
8.1.100.0000.00717.42
8.1.90.0030.00617.36
8.1.80.0000.00717.33
8.1.70.0000.00817.33
8.1.60.0000.00717.63
8.1.50.0070.00017.41
8.1.40.0000.00817.55
8.1.30.0000.00817.47
8.1.20.0030.00517.55
8.1.10.0000.00717.37
8.1.00.0040.00417.36
8.0.300.0040.00421.50
8.0.290.0000.00716.75
8.0.280.0040.00418.35
8.0.270.0040.00417.24
8.0.260.0040.00417.30
8.0.250.0030.00316.96
8.0.240.0030.00616.83
8.0.230.0000.00716.78
8.0.220.0030.00316.86
8.0.210.0030.00416.89
8.0.200.0030.00316.98
8.0.190.0030.00416.90
8.0.180.0040.00416.88
8.0.170.0030.00516.86
8.0.160.0070.00016.87
8.0.150.0000.00716.77
8.0.140.0040.00416.85
8.0.130.0000.00813.24
8.0.120.0000.00816.84
8.0.110.0000.00816.94
8.0.100.0070.00016.75
8.0.90.0000.00716.94
8.0.80.0090.01216.86
8.0.70.0040.00416.87
8.0.60.0040.00416.93
8.0.50.0020.00516.93
8.0.30.0080.01117.10
8.0.20.0090.01217.40
8.0.10.0000.00717.04
8.0.00.0100.00816.72
7.4.330.0020.00215.00
7.4.320.0030.00316.50
7.4.300.0060.00016.48
7.4.290.0030.00316.59
7.4.280.0000.00716.56
7.4.270.0030.00316.41
7.4.260.0000.00716.57
7.4.250.0000.00716.42
7.4.240.0020.00516.49
7.4.230.0000.00716.50
7.4.220.0140.00416.63
7.4.210.0070.00716.61
7.4.200.0000.00716.47
7.4.160.0080.00816.52
7.4.150.0130.01017.40
7.4.140.0120.00517.86
7.4.130.0100.00816.44
7.4.120.0100.00816.63
7.4.110.0030.01416.59
7.4.100.0030.01316.56
7.4.90.0060.01316.34
7.4.80.0080.00819.39
7.4.70.0100.01316.29
7.4.60.0070.01316.30
7.4.50.0000.00816.54
7.4.40.0100.00716.43
7.4.30.0130.00316.64
7.4.10.0060.00814.82
7.4.00.0100.00715.01
7.3.330.0000.00613.08
7.3.320.0030.00313.37
7.3.310.0040.00416.24
7.3.300.0030.00316.26
7.3.290.0110.00416.35
7.3.280.0070.00916.30
7.3.270.0120.01217.40
7.3.260.0110.00716.53
7.3.250.0140.00816.40
7.3.240.0030.01316.33
7.3.230.0100.00716.39
7.3.210.0080.00816.62
7.3.200.0120.00619.39
7.3.190.0110.00816.52
7.3.180.0070.01016.23
7.3.170.0070.01116.68
7.3.160.0100.00716.20
7.3.130.0120.00214.87
7.3.120.0080.00914.64
7.3.110.0060.00814.78
7.3.100.0060.00914.89
7.3.90.0080.00614.81
7.3.80.0080.00514.62
7.3.70.0040.01314.82
7.3.60.0040.00814.81
7.3.50.0070.00614.75
7.3.40.0050.00414.68
7.3.30.0090.00614.90
7.3.20.0070.00916.69
7.3.10.0080.00716.66
7.3.00.0050.00516.55
7.2.330.0160.00316.53
7.2.320.0070.01016.43
7.2.310.0140.00316.43
7.2.300.0150.00616.87
7.2.290.0170.00316.59
7.2.260.0080.00715.25
7.2.250.0070.01015.13
7.2.240.0050.00915.19
7.2.230.0120.00415.07
7.2.220.0060.00915.13
7.2.210.0070.00815.08
7.2.200.0060.00615.05
7.2.190.0060.01014.98
7.2.180.0050.00815.08
7.2.170.0040.01114.92
7.2.160.0050.00514.87
7.2.150.0090.00316.91
7.2.140.0070.00516.78
7.2.130.0040.00717.02
7.2.120.0060.01016.75
7.2.110.0050.01016.87
7.2.100.0030.00917.04
7.2.90.0030.01117.01
7.2.80.0100.00516.99
7.2.70.0050.00516.80
7.2.60.0060.00716.95
7.2.50.0020.01117.06
7.2.40.0020.01617.02
7.2.30.0070.00916.85
7.2.20.0090.00616.91
7.2.10.0060.00916.83
7.2.00.0060.00817.67
7.1.330.0060.00615.73
7.1.320.0170.00015.57
7.1.310.0030.00915.58
7.1.300.0050.00815.63
7.1.290.0030.00915.58
7.1.280.0050.00715.65
7.1.270.0060.01115.69
7.1.260.0050.00715.64
7.1.250.0050.00915.73
7.1.240.0110.00315.61
7.1.230.0060.00615.58
7.1.220.0080.00515.59
7.1.210.0070.00715.44
7.1.200.0050.00915.46
7.1.190.0040.00715.77
7.1.180.0070.00615.72
7.1.170.0070.00615.59
7.1.160.0080.00515.63
7.1.150.0050.00915.71
7.1.140.0030.01215.40
7.1.130.0060.00915.67
7.1.120.0090.00215.35
7.1.110.0030.01015.45
7.1.100.0060.00716.37
7.1.90.0040.00815.74
7.1.80.0040.01015.70
7.1.70.0050.00616.16
7.1.60.0030.00715.97
7.1.50.0030.01215.87
7.1.40.0020.01215.66
7.1.30.0060.01015.66
7.1.20.0060.01015.59
7.1.10.0060.00615.61
7.1.00.0080.02717.78
7.0.330.0030.00815.19
7.0.320.0050.00715.42
7.0.310.0090.00715.29
7.0.300.0050.00815.23
7.0.290.0060.00915.36
7.0.280.0020.01215.19
7.0.270.0080.00615.30
7.0.260.0060.00515.30
7.0.250.0060.00815.24
7.0.240.0060.00215.45
7.0.230.0040.00915.40
7.0.220.0070.00815.25
7.0.210.0050.00515.16
7.0.200.0070.00515.84
7.0.190.0040.00815.29
7.0.180.0020.00815.33
7.0.170.0040.01115.27
7.0.160.0030.00915.25
7.0.150.0030.00815.25
7.0.140.0070.02717.48
7.0.130.0100.00515.33
7.0.120.0090.00715.20
7.0.110.0100.00315.13
7.0.100.0030.00715.39
7.0.90.0080.00615.21
7.0.80.0000.01015.30
7.0.70.0090.00715.34
7.0.60.0120.02716.85
7.0.50.0030.03316.16
7.0.40.0040.02015.63
7.0.30.0220.02915.57
7.0.20.0120.02815.52
7.0.10.0110.03215.72
7.0.00.0020.02015.68
5.6.400.0050.00514.33
5.6.390.0060.00914.29
5.6.380.0030.01014.28
5.6.370.0070.00714.32
5.6.360.0070.01014.27
5.6.350.0080.00714.42
5.6.340.0050.00914.57
5.6.330.0070.00614.29
5.6.320.0080.00714.54
5.6.310.0050.00614.27
5.6.300.0030.01114.44
5.6.290.0060.00314.53
5.6.280.0050.03116.51
5.6.270.0050.01014.50
5.6.260.0030.00814.40
5.6.250.0050.00614.15
5.6.240.0090.00514.45
5.6.230.0050.00914.21
5.6.220.0020.01114.33
5.6.210.0080.02216.40
5.6.200.0070.03215.60
5.6.190.0040.02016.32
5.6.180.0140.02216.36
5.6.170.0130.02916.42
5.6.160.0070.03116.25
5.6.150.0030.02015.54
5.6.140.0040.03115.62
5.6.130.0070.02915.65
5.6.120.0060.02216.63
5.6.110.0020.03216.72
5.6.100.0060.03016.56
5.6.90.0040.02616.47
5.6.80.0010.02016.32
5.6.70.1110.01916.15
5.6.60.0060.00414.03
5.6.50.0050.00914.32
5.6.40.0070.00614.21
5.6.30.0070.00714.26
5.6.20.0050.00913.94
5.6.10.0090.00614.35
5.6.00.0000.01414.32
5.5.380.0050.00614.51
5.5.370.0020.01114.37
5.5.360.0070.00913.95
5.5.350.0100.02916.25
5.5.340.0090.02915.46
5.5.330.0090.01716.38
5.5.320.0140.02116.36
5.5.310.0130.01316.14
5.5.300.0030.02215.32
5.5.290.0060.03015.28
5.5.280.0050.02416.42
5.5.270.0030.02116.39
5.5.260.0010.02316.50
5.5.250.0070.02916.36
5.5.240.1170.01716.25
5.5.230.0050.00614.20
5.5.220.0040.00813.98
5.5.210.0010.01114.07
5.5.200.0050.00613.96
5.5.190.0050.01114.03
5.5.180.0030.01013.81
5.5.170.0020.01213.88
5.5.160.0030.01114.35
5.5.150.0050.01014.30
5.5.140.0000.01314.20
5.5.130.0030.00814.07
5.5.120.0070.00713.88
5.5.110.0050.00714.21
5.5.100.0030.00814.30
5.5.90.0030.01014.04
5.5.80.0020.01214.06
5.5.70.0090.00414.34
5.5.60.0050.00613.76
5.5.50.0090.00213.95
5.5.40.0030.00713.99
5.5.30.0070.00514.13
5.5.20.0020.00813.99
5.5.10.0030.01014.26
5.5.00.0070.00814.23
5.4.450.0040.02114.50
5.4.440.0110.02214.41
5.4.430.0090.01914.50
5.4.420.0080.01814.35
5.4.410.0120.01514.52
5.4.400.0170.01914.41
5.4.390.0080.01914.47
5.4.380.0120.02114.17
5.4.370.0130.02414.22
5.4.360.0100.02314.36
5.4.350.0100.02314.27
5.4.340.0120.02514.21
5.4.330.0040.00512.07
5.4.320.0030.01912.20
5.4.310.0050.01812.17
5.4.300.0060.01412.18
5.4.290.0040.01912.10
5.4.280.0050.01912.15
5.4.270.0050.01812.21
5.4.260.0080.01412.09
5.4.250.0050.01712.11
5.4.240.0060.01512.16
5.4.230.0050.01812.14
5.4.220.0030.01812.01
5.4.210.0020.01912.08
5.4.200.0050.01612.20
5.4.190.0030.01812.16
5.4.180.0050.01712.14
5.4.170.0070.01412.07
5.4.160.0040.01612.11
5.4.150.0030.02012.13
5.4.140.0060.01412.15
5.4.130.0050.01811.98
5.4.120.0050.01512.07
5.4.110.0040.01612.08
5.4.100.0050.01712.01
5.4.90.0050.01811.95
5.4.80.0060.01512.00
5.4.70.0050.01512.04
5.4.60.0050.01912.04
5.4.50.0040.01712.04
5.4.40.0070.01412.06
5.4.30.0070.01112.03
5.4.20.0040.01311.99
5.4.10.0020.01911.94
5.4.00.0040.01711.79
5.3.290.0060.03912.80
5.3.280.0040.04312.70
5.3.270.0120.03412.72
5.3.260.0030.04012.72
5.3.250.0070.03512.72
5.3.240.0070.03612.72
5.3.230.0040.03912.71
5.3.220.0090.04912.68
5.3.210.0060.03912.68
5.3.200.0050.03512.68
5.3.190.0060.03612.68
5.3.180.0050.03712.67
5.3.170.0080.03812.67
5.3.160.0070.03712.68
5.3.150.0070.03512.67
5.3.140.0020.04612.66
5.3.130.0060.04512.66
5.3.120.0070.04412.66
5.3.110.0050.04012.66
5.3.100.0080.03512.12
5.3.90.0040.03712.10
5.3.80.0080.04412.10
5.3.70.0080.04012.10
5.3.60.0050.03912.08
5.3.50.0060.03512.03
5.3.40.0050.03612.03
5.3.30.0080.03411.98
5.3.20.0060.03511.77
5.3.10.0060.03411.73
5.3.00.0100.04511.72
5.2.170.0040.0309.21
5.2.160.0040.0299.21
5.2.150.0040.0309.21
5.2.140.0040.0309.21
5.2.130.0050.0309.17
5.2.120.0040.0309.18
5.2.110.0030.0309.18
5.2.100.0070.0359.18
5.2.90.0050.0319.18
5.2.80.0060.0279.17
5.2.70.0030.0309.18
5.2.60.0100.0329.13
5.2.50.0050.0399.10
5.2.40.0060.0299.07
5.2.30.0070.0399.05
5.2.20.0050.0309.04
5.2.10.0050.0278.95
5.2.00.0050.0298.81
5.1.60.0080.0268.09
5.1.50.0030.0268.09
5.1.40.0060.0308.07
5.1.30.0030.0278.42
5.1.20.0040.0268.44
5.1.10.0070.0328.16
5.1.00.0060.0288.16
5.0.50.0050.0196.64
5.0.40.0060.0166.50
5.0.30.0030.0356.31
5.0.20.0030.0196.28
5.0.10.0040.0196.26
5.0.00.0020.0316.25
4.4.90.0030.0154.78
4.4.80.0030.0144.76
4.4.70.0030.0144.75
4.4.60.0010.0164.75
4.4.50.0030.0144.77
4.4.40.0020.0254.71
4.4.30.0040.0144.75
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0030.0244.76
4.3.110.0010.0174.67
4.3.100.0020.0154.67
4.3.90.0010.0164.64
4.3.80.0020.0254.58
4.3.70.0010.0164.63
4.3.60.0040.0134.63
4.3.50.0020.0154.63
4.3.40.0020.0244.54
4.3.30.0020.0153.30
4.3.20.0000.0173.29
4.3.10.0020.0153.24
4.3.00.0030.01313.25

preferences:
52.56 ms | 401 KiB | 5 Q