3v4l.org

run code in 300+ PHP versions simultaneously
<?php $I = new IteratorIterator(new ArrayIterator(array(1,2,3))); $I->rewind(); var_dump($I->current()); $I->next(); var_dump($I->current()); $I->next(); var_dump($I->current()); $I->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.3.60.0070.00718.31
8.3.50.0130.00821.92
8.3.40.0100.01018.59
8.3.30.0080.00618.92
8.3.20.0040.00420.32
8.3.10.0090.00023.66
8.3.00.0040.00419.14
8.2.180.0040.01116.38
8.2.170.0140.00422.96
8.2.160.0070.00720.24
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00322.26
8.2.110.0040.00422.30
8.2.100.0030.00817.66
8.2.90.0080.00019.28
8.2.80.0040.00417.97
8.2.70.0100.00017.63
8.2.60.0080.00017.91
8.2.50.0070.00718.07
8.2.40.0000.00819.95
8.2.30.0040.00418.20
8.2.20.0050.00217.51
8.2.10.0000.00817.98
8.2.00.0080.00017.54
8.1.280.0070.01125.92
8.1.270.0040.00423.70
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0080.00023.96
8.1.230.0120.00019.14
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0060.00317.25
8.1.190.0040.00417.23
8.1.180.0030.00518.84
8.1.170.0040.00418.37
8.1.160.0030.00521.95
8.1.150.0040.00418.58
8.1.140.0000.00717.26
8.1.130.0000.00717.86
8.1.120.0070.00017.28
8.1.110.0080.00317.28
8.1.100.0030.00417.29
8.1.90.0030.00317.49
8.1.80.0080.00017.29
8.1.70.0000.00817.29
8.1.60.0060.00317.57
8.1.50.0030.00617.41
8.1.40.0030.00617.45
8.1.30.0000.00717.63
8.1.20.0030.00517.58
8.1.10.0040.00417.48
8.1.00.0000.00717.43
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0000.00718.38
8.0.270.0000.00717.23
8.0.260.0030.00317.18
8.0.250.0070.00016.93
8.0.240.0000.00716.92
8.0.230.0070.00316.78
8.0.220.0030.00316.80
8.0.210.0040.00416.70
8.0.200.0030.00316.88
8.0.190.0040.00416.95
8.0.180.0080.00016.89
8.0.170.0000.00816.81
8.0.160.0050.00216.90
8.0.150.0040.00416.77
8.0.140.0040.00416.71
8.0.130.0000.00513.27
8.0.120.0080.00016.84
8.0.110.0040.00416.79
8.0.100.0030.00516.73
8.0.90.0040.00416.68
8.0.80.0070.01116.79
8.0.70.0000.00816.88
8.0.60.0000.00716.78
8.0.50.0040.00416.64
8.0.30.0120.00516.87
8.0.20.0060.01217.40
8.0.10.0000.00716.84
8.0.00.0070.01016.64
7.4.330.0030.00315.00
7.4.320.0040.00416.52
7.4.300.0060.00016.55
7.4.290.0000.00816.45
7.4.280.0070.00016.42
7.4.270.0070.00016.57
7.4.260.0070.00016.57
7.4.250.0040.00416.45
7.4.240.0000.00716.48
7.4.230.0070.00016.39
7.4.220.0070.01316.50
7.4.210.0100.00616.50
7.4.200.0040.00416.64
7.4.190.0070.00016.34
7.4.160.0120.00316.46
7.4.150.0070.01117.40
7.4.140.0110.00817.86
7.4.130.0190.01616.46
7.4.120.0100.00916.38
7.4.110.0140.00316.42
7.4.100.0100.01016.38
7.4.90.0110.00816.38
7.4.80.0030.01619.39
7.4.70.0080.00816.32
7.4.60.0080.00816.43
7.4.50.0090.00016.21
7.4.40.0070.01016.38
7.4.30.0140.00316.39
7.4.00.0090.00914.83
7.3.330.0020.00213.13
7.3.320.0000.00512.98
7.3.310.0030.00316.05
7.3.300.0070.00016.14
7.3.290.0090.00616.21
7.3.280.0070.01016.13
7.3.270.0000.01717.40
7.3.260.0200.00016.40
7.3.250.0100.01016.43
7.3.240.0150.00616.40
7.3.230.0060.01116.39
7.3.210.0100.00716.28
7.3.200.0150.00319.39
7.3.190.0110.01016.04
7.3.180.0100.00616.13
7.3.170.0110.00516.27
7.3.160.0140.00716.25
7.3.120.0130.00314.59
7.3.110.0090.00614.68
7.3.100.0120.00314.59
7.3.90.0110.00414.96
7.3.80.0070.00714.58
7.3.70.0090.00614.55
7.3.60.0070.00714.65
7.3.50.0040.00414.69
7.3.40.0000.01314.75
7.3.30.0030.00714.77
7.3.20.0130.00316.50
7.3.10.0040.01116.37
7.3.00.0000.01216.58
7.2.330.0100.01016.63
7.2.320.0070.01116.40
7.2.310.0150.00616.40
7.2.300.0180.00716.52
7.2.290.0130.01016.56
7.2.250.0100.00714.73
7.2.240.0060.01215.23
7.2.230.0060.00914.86
7.2.220.0060.00614.96
7.2.210.0100.00314.86
7.2.200.0030.01015.17
7.2.190.0060.00614.86
7.2.180.0060.00815.11
7.2.170.0070.00814.98
7.2.60.0110.00416.66
7.2.00.0030.01119.04
7.1.330.0070.00715.75
7.1.320.0030.01015.41
7.1.310.0060.00615.81
7.1.300.0070.00715.83
7.1.290.0070.00715.73
7.1.280.0040.00815.48
7.1.270.0020.01215.66
7.1.260.0080.00315.54
7.1.200.0040.01115.43
7.1.100.0170.00717.95
7.1.70.0000.01116.76
7.1.60.0030.00717.02
7.1.50.0030.01916.79
7.1.00.0030.07722.48
7.0.200.0070.00716.49
7.0.140.0000.07722.19
7.0.60.0070.07719.95
7.0.50.0130.06717.82
7.0.40.0030.06320.09
7.0.30.0330.04020.09
7.0.20.0270.08020.33
7.0.10.0070.07020.16
7.0.00.0070.04720.32
5.6.280.0130.06321.15
5.6.210.0000.04320.76
5.6.200.0030.04318.22
5.6.190.0070.04020.41
5.6.180.3230.03720.60
5.6.170.0100.04720.40
5.6.160.0170.07320.61
5.6.150.0130.07018.19
5.6.140.0030.05718.11
5.6.130.0100.07318.18
5.6.120.0070.04721.12
5.6.110.0170.08020.89
5.6.100.0070.08720.96
5.6.90.0200.07021.00
5.6.80.0100.03720.40
5.6.70.4330.04320.37
5.5.350.0230.08020.44
5.5.340.0100.06718.02
5.5.330.0100.04020.16
5.5.320.0270.06720.13
5.5.310.0270.03320.24
5.5.300.0100.07317.89
5.5.290.0100.04317.88
5.5.280.0230.07020.84
5.5.270.0030.04320.84
5.5.260.0070.08020.86
5.5.250.0030.05720.68
5.5.240.0230.04020.18
5.4.450.0200.05019.39
5.4.440.0130.06719.32
5.4.430.0700.05019.50
5.4.420.1030.04319.66
5.4.410.0930.06019.52
5.4.400.0770.04719.09
5.4.390.1100.06318.93
5.4.380.0100.06018.77
5.4.370.0170.05318.46
5.4.360.0170.04718.63
5.4.350.0130.05718.63
5.4.340.0200.04718.55
5.4.320.0080.06212.46
5.4.310.0100.07412.45
5.4.300.0080.04712.45
5.4.290.0120.06912.45
5.4.280.0090.05512.35
5.4.270.0090.05212.35
5.4.260.0120.05612.35
5.4.250.0090.05712.35
5.4.240.0090.06612.35
5.4.230.0150.07412.34
5.4.220.0170.07512.34
5.4.210.0130.06412.34
5.4.200.0190.07112.34
5.4.190.0060.06512.34
5.4.180.0130.05612.34
5.4.170.0070.06412.35
5.4.160.0140.05212.34
5.4.150.0100.05412.34
5.4.140.0080.06012.02
5.4.130.0070.05912.01
5.4.120.0090.05711.97
5.4.110.0080.05711.97
5.4.100.0120.04911.96
5.4.90.0110.05311.97
5.4.80.0090.05411.96
5.4.70.0070.05611.96
5.4.60.0060.05711.96
5.4.50.0100.05311.96
5.4.40.0080.05311.96
5.4.30.0120.05711.95
5.4.20.0120.05211.95
5.4.10.0100.05111.95
5.4.00.0060.05211.44
5.3.290.0070.05312.80
5.3.280.0110.05112.70
5.3.270.0130.05312.73
5.3.260.0090.05712.72
5.3.250.0150.05212.72
5.3.240.0100.05412.72
5.3.230.0140.05412.71
5.3.220.0090.06012.68
5.3.210.0080.05912.68
5.3.200.0090.04812.68
5.3.190.0080.04112.68
5.3.180.0110.07612.67
5.3.170.0220.07712.67
5.3.160.0150.05012.67
5.3.150.0110.05712.67
5.3.140.0120.05412.66
5.3.130.0130.04012.66
5.3.120.0080.04212.66
5.3.110.0080.05412.66
5.3.100.0110.06512.12
5.3.90.0070.04212.09
5.3.80.0070.04212.07
5.3.70.0090.05012.07
5.3.60.0100.03812.06
5.3.50.0080.05112.00
5.3.40.0090.05212.00
5.3.30.0070.05211.94
5.3.20.0050.04111.72
5.3.10.0080.03611.69
5.3.00.0080.04211.68
5.2.170.0080.0359.18
5.2.160.0060.0379.18
5.2.150.0100.0329.18
5.2.140.0170.0549.18
5.2.130.0130.0459.13
5.2.120.0140.0629.14
5.2.110.0070.0439.14
5.2.100.0080.0409.14
5.2.90.0120.0409.14
5.2.80.0090.0429.13
5.2.70.0070.0419.13
5.2.60.0100.0449.09
5.2.50.0070.0479.06
5.2.40.0110.0439.04
5.2.30.0100.0879.01
5.2.20.0050.0349.00
5.2.10.0080.0288.92
5.2.00.0020.0358.78
5.1.60.0050.0288.06
5.1.50.0060.0298.06
5.1.40.0070.0448.04
5.1.30.0090.0448.39
5.1.20.0070.0298.41
5.1.10.0130.0458.13
5.1.00.0030.0338.14
5.0.50.0040.0226.61
5.0.40.0020.0296.48
5.0.30.0030.0376.29
5.0.20.0090.0176.27
5.0.10.0050.0276.24
5.0.00.0050.0386.23
4.4.90.0030.0224.78
4.4.80.0050.0204.76
4.4.70.0040.0304.75
4.4.60.0040.0214.75
4.4.50.0040.0274.77
4.4.40.0040.0394.71
4.4.30.0060.0224.76
4.4.20.0080.0304.85
4.4.10.0100.0234.85
4.4.00.0050.0334.75
4.3.110.0050.0214.66
4.3.100.0050.0194.67
4.3.90.0060.0194.63
4.3.80.0050.0304.59
4.3.70.0070.0184.63
4.3.60.0030.0224.63
4.3.50.0050.0204.63
4.3.40.0040.0294.54
4.3.30.0050.0183.29
4.3.20.0030.0193.26
4.3.10.0020.0213.22
4.3.00.0030.0207.69

preferences:
54.48 ms | 401 KiB | 5 Q