3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IteratorIteratorEx extends IteratorIterator{ 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.0030.01718.55
8.3.50.0050.01422.82
8.3.40.0130.00718.71
8.3.30.0070.00719.04
8.3.20.0070.00020.31
8.3.10.0070.00023.53
8.3.00.0050.00319.26
8.2.180.0070.01116.46
8.2.170.0070.00722.96
8.2.160.0100.00720.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.01326.16
8.2.120.0080.00021.10
8.2.110.0030.00622.25
8.2.100.0000.01318.03
8.2.90.0040.00719.28
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0040.00417.92
8.2.50.0040.00718.07
8.2.40.0000.00919.88
8.2.30.0040.00418.01
8.2.20.0070.00017.55
8.2.10.0000.00718.11
8.2.00.0000.00717.65
8.1.280.0070.00725.92
8.1.270.0050.00321.98
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00422.01
8.1.230.0080.00419.26
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0130.00718.19
8.1.160.0050.00221.91
8.1.150.0050.00218.87
8.1.140.0000.00717.54
8.1.130.0070.00017.82
8.1.120.0040.00417.48
8.1.110.0020.00517.34
8.1.100.0000.00717.34
8.1.90.0060.00317.43
8.1.80.0040.00417.33
8.1.70.0040.00417.42
8.1.60.0040.00417.56
8.1.50.0040.00417.47
8.1.40.0000.00717.41
8.1.30.0000.00817.47
8.1.20.0050.00317.63
8.1.10.0050.00317.46
8.1.00.0030.00517.54
8.0.300.0050.00218.77
8.0.290.0080.00016.75
8.0.280.0020.00518.35
8.0.270.0000.00717.30
8.0.260.0000.00717.32
8.0.250.0000.00716.90
8.0.240.0080.00017.01
8.0.230.0040.00416.93
8.0.220.0000.00716.76
8.0.210.0000.00716.79
8.0.200.0030.00316.94
8.0.190.0020.00516.87
8.0.180.0000.00716.86
8.0.170.0030.00516.95
8.0.160.0030.00316.86
8.0.150.0070.00016.86
8.0.140.0030.00516.84
8.0.130.0020.00613.39
8.0.120.0030.00516.90
8.0.110.0000.00716.91
8.0.100.0030.00316.76
8.0.90.0070.00016.84
8.0.80.0090.00616.92
8.0.70.0070.00016.77
8.0.60.0070.00016.94
8.0.50.0070.00016.75
8.0.30.0100.01217.08
8.0.20.0110.00917.40
8.0.10.0040.00416.97
8.0.00.0000.01816.68
7.4.330.0030.00315.09
7.4.320.0060.00016.59
7.4.300.0060.00016.54
7.4.290.0000.00716.51
7.4.280.0030.00316.48
7.4.270.0070.00016.58
7.4.260.0070.00016.47
7.4.250.0040.00416.32
7.4.240.0000.00716.52
7.4.230.0030.00316.29
7.4.220.0100.01616.63
7.4.210.0030.01016.46
7.4.200.0040.00416.59
7.4.160.0090.00616.37
7.4.150.0070.01117.40
7.4.140.0070.01017.86
7.4.130.0080.01016.49
7.4.120.0100.00816.60
7.4.110.0100.01016.61
7.4.100.0140.00416.55
7.4.90.0130.00716.55
7.4.80.0090.00919.39
7.4.70.0100.01316.59
7.4.60.0100.00716.47
7.4.50.0000.00816.35
7.4.40.0130.00316.48
7.4.30.0100.00616.48
7.4.00.0070.01014.54
7.3.330.0000.00513.28
7.3.320.0070.00013.29
7.3.310.0030.00316.15
7.3.300.0070.00016.30
7.3.290.0100.00516.30
7.3.280.0080.01116.24
7.3.270.0140.00517.40
7.3.260.0130.00516.52
7.3.250.0060.01116.47
7.3.240.0060.00916.54
7.3.230.0060.01216.61
7.3.210.0140.00316.34
7.3.200.0080.00916.23
7.3.190.0180.00316.48
7.3.180.0140.00316.70
7.3.170.0100.00716.28
7.3.160.0060.01316.42
7.2.330.0070.01016.55
7.2.320.0090.01416.40
7.2.310.0140.00316.59
7.2.300.0100.00716.43
7.2.290.0030.01316.71
7.2.00.0140.00319.53
7.1.200.0070.00715.86
7.1.100.0040.01118.05
7.1.70.0070.00017.25
7.1.60.0000.01419.40
7.1.50.0070.01416.61
7.1.00.0070.07322.42
7.0.200.0490.00014.76
7.0.140.0070.07022.21
7.0.60.0070.04019.93
7.0.50.0070.08017.94
7.0.40.0070.09020.27
7.0.30.0300.04320.11
7.0.20.0230.08320.23
7.0.10.0100.03720.09
7.0.00.0030.08720.17
5.6.280.0070.07021.16
5.6.210.0030.08720.51
5.6.200.0030.04018.22
5.6.190.0070.05320.48
5.6.180.0370.03020.42
5.6.170.0300.07320.47
5.6.160.0000.04720.52
5.6.150.0200.07018.23
5.6.140.0070.03718.11
5.6.130.0030.06718.22
5.6.120.0100.06320.96
5.6.110.0130.08320.99
5.6.100.0070.09020.98
5.6.90.0170.07021.13
5.6.80.0130.06020.44
5.5.350.0030.03020.45
5.5.340.0030.04018.03
5.5.330.0030.04020.30
5.5.320.0330.05020.26
5.5.310.0270.05720.34
5.5.300.0170.07018.00
5.5.290.0000.04318.03
5.5.280.0170.06020.80
5.5.270.0100.03320.96
5.5.260.0070.09020.64
5.5.250.0100.08320.78
5.5.240.0170.04720.16
5.4.450.0200.04319.55
5.4.440.0230.05019.17
5.4.430.0170.04319.41
5.4.420.0300.04719.30
5.4.410.0070.04319.41
5.4.400.0370.03319.10
5.4.390.0130.04319.20
5.4.380.0300.07018.56
5.4.370.0330.07718.59
5.4.360.0470.05318.50
5.4.350.0370.08318.80
5.4.340.0270.05318.54
5.4.320.0060.03612.50
5.4.310.0050.03812.50
5.4.300.0090.03812.50
5.4.290.0060.04812.50
5.4.280.0060.03512.39
5.4.270.0050.03612.39
5.4.260.0040.03812.39
5.4.250.0080.04212.40
5.4.240.0050.03712.39
5.4.230.0070.05212.38
5.4.220.0080.05012.39
5.4.210.0070.03612.38
5.4.200.0020.04112.39
5.4.190.0070.03512.38
5.4.180.0050.03712.38
5.4.170.0060.03612.39
5.4.160.0070.03512.39
5.4.150.0040.03812.38
5.4.140.0070.03512.07
5.4.130.0040.04512.05
5.4.120.0080.04012.02
5.4.110.0060.03612.01
5.4.100.0040.03712.01
5.4.90.0050.03812.02
5.4.80.0050.03712.02
5.4.70.0060.03512.01
5.4.60.0080.03112.01
5.4.50.0040.03612.01
5.4.40.0060.03412.00
5.4.30.0070.03511.99
5.4.20.0050.03612.00
5.4.10.0050.03511.99
5.4.00.0060.03711.48
5.3.290.0080.03912.80
5.3.280.0040.03812.71
5.3.270.0050.03912.73
5.3.260.0050.03912.72
5.3.250.0060.03612.72
5.3.240.0090.04912.72
5.3.230.0070.03712.71
5.3.220.0110.05212.68
5.3.210.0070.04312.68
5.3.200.0060.04912.68
5.3.190.0080.03512.68
5.3.180.0050.03912.67
5.3.170.0050.03712.67
5.3.160.0070.03712.67
5.3.150.0060.04112.67
5.3.140.0060.03612.66
5.3.130.0050.04012.66
5.3.120.0060.03812.66
5.3.110.0040.04112.66
5.3.100.0060.03612.13
5.3.90.0030.03912.11
5.3.80.0070.03612.09
5.3.70.0070.03612.09
5.3.60.0070.04512.08
5.3.50.0070.03912.03
5.3.40.0060.03712.03
5.3.30.0110.03711.98
5.3.20.0070.03311.77
5.3.10.0080.03511.73
5.3.00.0060.04811.72
5.2.170.0070.0279.22
5.2.160.0040.0289.21
5.2.150.0040.0379.22
5.2.140.0070.0279.21
5.2.130.0060.0379.17
5.2.120.0030.0339.18
5.2.110.0050.0449.18
5.2.100.0080.0319.18
5.2.90.0070.0419.18
5.2.80.0080.0289.17
5.2.70.0040.0319.18
5.2.60.0040.0309.13
5.2.50.0060.0289.10
5.2.40.0060.0279.08
5.2.30.0080.0269.05
5.2.20.0040.0319.04
5.2.10.0030.0298.94
5.2.00.0040.0298.80
5.1.60.0060.0228.09
5.1.50.0050.0238.09
5.1.40.0060.0228.07
5.1.30.0020.0278.42
5.1.20.0070.0318.44
5.1.10.0080.0228.17
5.1.00.0040.0268.17
5.0.50.0030.0246.64
5.0.40.0020.0246.50
5.0.30.0040.0316.31
5.0.20.0060.0166.28
5.0.10.0020.0216.26
5.0.00.0020.0326.25
4.4.90.0020.0154.78
4.4.80.0020.0164.75
4.4.70.0020.0164.75
4.4.60.0040.0144.75
4.4.50.0020.0164.77
4.4.40.0040.0274.71
4.4.30.0030.0144.76
4.4.20.0050.0194.84
4.4.10.0040.0144.85
4.4.00.0030.0244.76
4.3.110.0040.0154.67
4.3.100.0020.0154.66
4.3.90.0020.0144.63
4.3.80.0020.0254.59
4.3.70.0040.0134.63
4.3.60.0030.0174.63
4.3.50.0010.0264.63
4.3.40.0020.0244.54
4.3.30.0020.0153.30
4.3.20.0020.0153.28
4.3.10.0010.0163.24
4.3.00.0070.01313.25

preferences:
48.31 ms | 401 KiB | 5 Q