3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new ArrayObject(array()); $b = $a->getIterator(); var_dump(iterator_to_array(new LimitIterator($b, 20, -1)));

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.40.0110.00418.82
8.3.30.0140.00019.27
8.3.20.0030.00520.16
8.3.10.0000.00821.77
8.3.00.0050.00319.38
8.2.170.0120.00622.96
8.2.160.0030.01020.48
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.24
8.2.110.0030.00622.23
8.2.100.0040.00717.63
8.2.90.0030.00618.99
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0030.00617.80
8.2.50.0060.00318.07
8.2.40.0030.00617.91
8.2.30.0070.00018.00
8.2.20.0030.00617.62
8.2.10.0000.00717.92
8.2.00.0060.00317.55
8.1.270.0080.00023.96
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0090.00023.78
8.1.230.0080.00319.06
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0060.00318.32
8.1.160.0050.00221.96
8.1.150.0040.00418.71
8.1.140.0000.00817.41
8.1.130.0080.00017.88
8.1.120.0030.00317.41
8.1.110.0040.00417.35
8.1.100.0040.00417.45
8.1.90.0070.00017.28
8.1.80.0040.00417.40
8.1.70.0030.00317.34
8.1.60.0060.00317.42
8.1.50.0040.00417.43
8.1.40.0040.00417.35
8.1.30.0000.00817.68
8.1.20.0000.00817.49
8.1.10.0030.00517.47
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00818.39
8.0.270.0030.00317.21
8.0.260.0030.00317.20
8.0.250.0000.00716.90
8.0.240.0000.00716.85
8.0.230.0000.00716.96
8.0.220.0070.00016.77
8.0.210.0070.00016.79
8.0.200.0000.00717.02
8.0.190.0080.00016.91
8.0.180.0000.00716.79
8.0.170.0040.00416.91
8.0.160.0040.00416.82
8.0.150.0080.00016.84
8.0.140.0040.00416.89
8.0.130.0000.00513.33
8.0.120.0040.00416.86
8.0.110.0040.00416.76
8.0.100.0040.00416.91
8.0.90.0040.00416.75
8.0.80.0040.01116.88
8.0.70.0000.00816.82
8.0.60.0050.00316.86
8.0.50.0000.00716.72
8.0.30.0100.01317.00
8.0.20.0110.01017.40
8.0.10.0040.00417.01
8.0.00.0060.01316.64
7.4.330.0050.00015.00
7.4.320.0000.00616.44
7.4.300.0040.00416.48
7.4.290.0030.00616.65
7.4.280.0000.00816.64
7.4.270.0030.00316.44
7.4.260.0000.00716.42
7.4.250.0000.01016.55
7.4.240.0020.00516.54
7.4.230.0070.00016.41
7.4.220.0070.01916.53
7.4.210.0060.00916.46
7.4.200.0040.00416.41
7.4.160.0060.01516.54
7.4.150.0000.01817.40
7.4.140.0100.00917.86
7.4.130.0060.01216.63
7.4.120.0110.00516.43
7.4.110.0090.00916.61
7.4.100.0120.00416.44
7.4.90.0100.00716.55
7.4.80.0060.01119.39
7.4.70.0080.01316.48
7.4.60.0120.00316.51
7.4.50.0050.00316.27
7.4.40.0100.00716.59
7.4.30.0030.01316.64
7.4.00.0030.00915.11
7.3.330.0030.00413.06
7.3.320.0050.00013.21
7.3.310.0000.00816.10
7.3.300.0000.00616.11
7.3.290.0070.00616.29
7.3.280.0070.01016.27
7.3.270.0100.00717.40
7.3.260.0090.00916.25
7.3.240.0070.01016.37
7.3.230.0070.01116.39
7.3.210.0090.00916.23
7.3.200.0130.00519.39
7.3.190.0110.00716.24
7.3.180.0090.00616.46
7.3.170.0040.01116.40
7.3.160.0030.01216.29
7.2.330.0030.01516.63
7.2.320.0190.00416.73
7.2.310.0090.00916.68
7.2.300.0140.00416.59
7.2.290.0030.01416.57
7.2.60.0090.00616.96
7.2.00.0040.01519.26
7.1.200.0040.00415.72
7.1.100.0040.00418.01
7.1.70.0000.00816.85
7.1.60.0100.00319.32
7.1.50.0140.01116.93
7.1.00.0000.07722.54
7.0.200.0000.00816.38
7.0.140.0000.07722.21
7.0.60.0100.04319.93
7.0.50.0000.05317.85
7.0.40.0200.07319.98
7.0.30.0330.04320.21
7.0.20.0230.07020.19
7.0.10.0030.08720.09
7.0.00.0070.05320.12
5.6.280.0030.07321.10
5.6.210.0030.07320.51
5.6.200.0030.07318.30
5.6.190.0070.08320.47
5.6.180.0270.06720.62
5.6.170.0370.06020.54
5.6.160.0070.08320.55
5.6.150.0100.05318.18
5.6.140.0170.07318.28
5.6.130.0170.07018.19
5.6.120.0030.09020.93
5.6.110.0070.08320.97
5.6.100.0070.07020.99
5.6.90.0030.06720.96
5.6.80.0130.07720.37
5.5.350.0130.03020.38
5.5.340.0070.07017.95
5.5.330.0130.08320.17
5.5.320.0470.06020.29
5.5.310.0400.05720.36
5.5.300.0030.06317.97
5.5.290.0070.06717.96
5.5.280.0000.04320.88
5.5.270.0030.07020.66
5.5.260.0030.09020.75
5.5.250.0070.08320.68
5.5.240.0300.07020.26
5.4.450.0070.06019.61
5.4.440.0870.05319.61
5.4.430.0630.06019.58
5.4.420.0670.00019.37
5.4.410.0770.00019.32
5.4.400.0630.00019.09
5.4.390.0630.00019.26
5.4.380.0630.00019.24
5.4.370.0630.00018.98
5.4.360.0630.00019.09
5.4.350.0670.00019.02
5.4.340.0060.03512.02
5.4.320.0060.03612.50
5.4.310.0070.03712.49
5.4.300.0110.03212.50
5.4.290.0070.03712.50
5.4.280.0080.03312.39
5.4.270.0050.03712.39
5.4.260.0070.03712.39
5.4.250.0050.03912.39
5.4.240.0070.03612.39
5.4.230.0060.03712.38
5.4.220.0090.03212.39
5.4.210.0080.03312.38
5.4.200.0070.03712.39
5.4.190.0060.03612.38
5.4.180.0060.03612.38
5.4.170.0030.04112.39
5.4.160.0070.03412.39
5.4.150.0060.03612.38
5.4.140.0050.03712.07
5.4.130.0060.03512.05
5.4.120.0040.03612.02
5.4.110.0080.03312.01
5.4.100.0070.03512.01
5.4.90.0080.03712.01
5.4.80.0070.03812.01
5.4.70.0080.03612.01
5.4.60.0080.03212.00
5.4.50.0080.04012.01
5.4.40.0060.03912.00
5.4.30.0090.03311.99
5.4.20.0100.03012.00
5.4.10.0060.03411.99
5.4.00.0050.03711.48
5.3.290.0090.03612.80
5.3.280.0100.03412.70
5.3.270.0060.03912.72
5.3.260.0090.03612.72
5.3.250.0050.03812.72
5.3.240.0060.03712.72
5.3.230.0100.03312.71
5.3.220.0060.03712.68
5.3.210.0060.04012.68
5.3.200.0070.04712.68
5.3.190.0080.03712.67
5.3.180.0090.03612.68
5.3.170.0100.03312.67
5.3.160.0060.03712.68
5.3.150.0060.03812.68
5.3.140.0050.03712.66
5.3.130.0080.03612.66
5.3.120.0040.04112.66
5.3.110.0060.04112.65
5.3.100.0060.03612.12
5.3.90.0050.03712.11
5.3.80.0050.03812.10
5.3.70.0090.03312.10
5.3.60.0070.03412.08
5.3.50.0110.03112.03
5.3.40.0080.04812.03
5.3.30.0120.04511.99
5.3.20.0050.04011.77
5.3.10.0040.03611.75
5.3.00.0080.03311.72
5.2.170.0040.0309.22
5.2.160.0060.0279.23
5.2.150.0040.0309.22
5.2.140.0070.0319.22
5.2.130.0030.0309.18
5.2.120.0100.0269.18
5.2.110.0070.0329.19
5.2.100.0080.0289.19
5.2.90.0050.0289.18
5.2.80.0060.0299.18
5.2.70.0060.0309.18
5.2.60.0030.0319.13
5.2.50.0050.0309.10
5.2.40.0080.0309.07
5.2.30.0060.0319.05
5.2.20.0030.0319.04
5.2.10.0060.0288.94
5.2.00.0050.0298.81
5.1.60.0060.0298.10
5.1.50.0050.0248.09
5.1.40.0070.0328.05
5.1.30.0070.0278.40
5.1.20.0050.0278.42
5.1.10.0080.0238.14
5.1.00.0060.0238.14
5.0.50.0060.0186.62
5.0.40.0050.0206.48
5.0.30.0030.0326.29
5.0.20.0090.0176.26
5.0.10.0050.0196.24
5.0.00.0040.0316.23
4.4.90.0070.0144.78
4.4.80.0050.0164.75
4.4.70.0040.0174.75
4.4.60.0030.0164.75
4.4.50.0060.0174.77
4.4.40.0040.0254.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0040.0154.85
4.4.00.0050.0234.76
4.3.110.0080.0194.67
4.3.100.0070.0194.66
4.3.90.0020.0244.63
4.3.80.0050.0324.59
4.3.70.0050.0244.63
4.3.60.0030.0204.63
4.3.50.0090.0134.63
4.3.40.0080.0264.54
4.3.30.0030.0173.28
4.3.20.0030.0213.25
4.3.10.0030.0203.22
4.3.00.0170.0237.33

preferences:
38.11 ms | 400 KiB | 5 Q