3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array('name'=>'butch', 'sex'=>'male'), array('name'=>'fido', 'sex'=>'male'), array('name'=>'girly','sex'=>'female') ); $it=new RecursiveIteratorIterator(new RecursiveArrayIterator($array)); //$it->rewind(); //The result will be as expected if uncomment this while($it->valid()){ echo $it->key().' -- '.$it->current()."\n"; $it->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.68
8.3.50.0090.00922.05
8.3.40.0070.00718.85
8.3.30.0100.00319.04
8.3.20.0080.00020.32
8.3.10.0040.00423.46
8.3.00.0050.00321.03
8.2.180.0160.00016.63
8.2.170.0110.00422.96
8.2.160.0150.00020.38
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0000.00720.72
8.2.110.0060.00322.30
8.2.100.0100.00322.08
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0030.00518.04
8.2.50.0030.00518.07
8.2.40.0080.00017.97
8.2.30.0040.00318.19
8.2.20.0040.00417.69
8.2.10.0040.00417.95
8.2.00.0040.00417.55
8.1.280.0090.00925.92
8.1.270.0040.00423.97
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00318.93
8.1.230.0070.00319.15
8.1.220.0030.00617.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.00
8.1.180.0030.00518.10
8.1.170.0040.00418.65
8.1.160.0040.00422.01
8.1.150.0000.00718.55
8.1.140.0040.00417.39
8.1.130.0030.00317.77
8.1.120.0000.00717.43
8.1.110.0030.00617.50
8.1.100.0030.00517.47
8.1.90.0040.00417.48
8.1.80.0090.00017.46
8.1.70.0030.00317.37
8.1.60.0060.00317.51
8.1.50.0000.00817.46
8.1.40.0040.00417.57
8.1.30.0040.00417.55
8.1.20.0080.00017.56
8.1.10.0040.00417.54
8.1.00.0070.00417.51
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.46
8.0.270.0000.00817.25
8.0.260.0030.00317.32
8.0.250.0030.00317.02
8.0.240.0000.00817.04
8.0.230.0000.00716.94
8.0.220.0070.00016.94
8.0.210.0000.00716.98
8.0.200.0000.01016.98
8.0.190.0040.00417.05
8.0.180.0000.00716.87
8.0.170.0000.00816.96
8.0.160.0040.00417.01
8.0.150.0000.00716.94
8.0.140.0040.00416.95
8.0.130.0000.00613.32
8.0.120.0050.00216.82
8.0.110.0080.00016.89
8.0.100.0000.00716.96
8.0.90.0040.00416.98
8.0.80.0060.01116.87
8.0.70.0040.00416.77
8.0.60.0040.00416.91
8.0.50.0000.00816.84
8.0.30.0080.01117.31
8.0.20.0050.01417.40
8.0.10.0040.00416.91
8.0.00.0100.01016.77
7.4.330.0000.00515.10
7.4.320.0000.00716.58
7.4.300.0030.00316.53
7.4.290.0040.00416.65
7.4.280.0040.00416.50
7.4.270.0070.00016.50
7.4.260.0000.00716.49
7.4.250.0040.00416.52
7.4.240.0010.00616.54
7.4.230.0030.00616.65
7.4.220.0120.00616.39
7.4.210.0030.01016.52
7.4.200.0070.00016.29
7.4.160.0060.00916.34
7.4.150.0180.00917.40
7.4.140.0090.00817.86
7.4.130.0090.01016.47
7.4.120.0080.01116.44
7.4.110.0100.00716.55
7.4.100.0170.00716.23
7.4.90.0060.01216.34
7.4.80.0090.01219.39
7.4.70.0130.00416.47
7.4.60.0120.00616.66
7.4.50.0030.00316.47
7.4.40.0060.01016.60
7.4.30.0060.01516.54
7.4.00.0110.00415.13
7.3.330.0030.00313.11
7.3.320.0000.00513.20
7.3.310.0080.00016.35
7.3.300.0000.00616.17
7.3.290.0040.01116.30
7.3.280.0140.00316.25
7.3.270.0070.01017.40
7.3.260.0130.00316.22
7.3.250.0140.00416.24
7.3.240.0040.01216.21
7.3.230.0060.01216.39
7.3.210.0150.00616.34
7.3.200.0060.00919.39
7.3.190.0090.00916.52
7.3.180.0040.01216.34
7.3.170.0060.00916.30
7.3.160.0070.00716.41
7.3.120.0090.00615.05
7.2.330.0100.01316.67
7.2.320.0180.00016.55
7.2.310.0090.01316.93
7.2.300.0140.00316.80
7.2.290.0130.01016.50
7.2.00.0030.00718.86
7.1.100.0070.00418.07
7.1.70.0040.00417.06
7.1.60.0100.01019.70
7.1.50.0120.01216.86
7.1.00.0030.07322.48
7.0.200.0120.00916.60
7.0.140.0030.07321.98
7.0.60.0170.07319.92
7.0.50.0000.05017.80
7.0.40.0030.04320.24
7.0.30.0530.05720.30
7.0.20.0200.04020.29
7.0.10.0070.04020.16
7.0.00.0130.08020.25
5.6.280.0030.07321.07
5.6.210.0070.07320.75
5.6.200.0100.08018.11
5.6.190.0130.06020.41
5.6.180.0270.04020.64
5.6.170.0230.08020.63
5.6.160.0070.06720.39
5.6.150.0030.04018.11
5.6.140.0030.04318.11
5.6.130.0070.04018.11
5.6.120.0130.07720.98
5.6.110.0030.06321.00
5.6.100.0100.06320.96
5.6.90.0100.04021.09
5.6.80.0070.06320.28
5.6.70.4400.03720.34
5.5.350.0070.07720.46
5.5.340.0030.04718.01
5.5.330.0030.05020.15
5.5.320.0200.05020.32
5.5.310.0170.04020.32
5.5.300.0100.04718.01
5.5.290.0070.08018.00
5.5.280.0100.03320.98
5.5.270.0130.06320.64
5.5.260.0230.07020.72
5.5.250.0030.04720.61
5.5.240.0230.02720.26
5.4.450.0170.04328.28
5.4.440.0270.04727.68
5.4.430.0430.03726.16
5.4.420.0270.04726.15
5.4.410.0570.06719.24
5.4.400.0170.03026.13
5.4.390.0200.04026.13
5.4.380.0230.07318.66
5.4.370.0330.05718.59
5.4.360.0170.05318.73
5.4.350.0230.06318.49
5.4.340.0300.05018.68
5.4.320.0070.04012.46
5.4.310.0060.03612.45
5.4.300.0070.05012.45
5.4.290.0090.04312.45
5.4.280.0080.04912.35
5.4.270.0130.04312.35
5.4.260.0100.05112.35
5.4.250.0090.04812.35
5.4.240.0150.06112.35
5.4.230.0170.06612.34
5.4.220.0050.05812.34
5.4.210.0130.05012.34
5.4.200.0060.06212.34
5.4.190.0160.07312.34
5.4.180.0120.08212.34
5.4.170.0060.06012.35
5.4.160.0080.05512.34
5.4.150.0110.08012.34
5.4.140.0080.05812.02
5.4.130.0070.05512.01
5.4.120.0090.05911.97
5.4.110.0110.05611.97
5.4.100.0090.06511.97
5.4.90.0120.06711.96
5.4.80.0080.05211.96
5.4.70.0040.04911.96
5.4.60.0070.04411.96
5.4.50.0070.05111.96
5.4.40.0070.04911.95
5.4.30.0090.04611.95
5.4.20.0060.06311.95
5.4.10.0070.05411.95
5.4.00.0080.07311.44
5.3.290.0050.04012.80
5.3.280.0080.05012.71
5.3.270.0100.06212.72
5.3.260.0080.05612.72
5.3.250.0060.05012.72
5.3.240.0090.04412.72
5.3.230.0090.05112.71
5.3.220.0070.05512.68
5.3.210.0080.05812.68
5.3.200.0090.05412.68
5.3.190.0110.05112.68
5.3.180.0080.04312.67
5.3.170.0090.05512.67
5.3.160.0090.05412.67
5.3.150.0120.05112.67
5.3.140.0130.05212.66
5.3.130.0130.08112.66
5.3.120.0080.04912.66
5.3.110.0080.04812.66
5.3.100.0190.05912.12
5.3.90.0110.07712.09
5.3.80.0080.06512.07
5.3.70.0130.06212.07
5.3.60.0140.07612.06
5.3.50.0090.07212.00
5.3.40.0090.04812.00
5.3.30.0080.05311.95
5.3.20.0080.05311.73
5.3.10.0110.05111.69
5.3.00.0070.06411.68
5.2.170.0080.0529.18
5.2.160.0150.0419.18
5.2.150.0120.0489.18
5.2.140.0090.0429.18
5.2.130.0180.0369.14
5.2.120.0080.0419.14
5.2.110.0090.0419.14
5.2.100.0070.0499.14
5.2.90.0100.0409.14
5.2.80.0090.0399.14
5.2.70.0040.0449.14
5.2.60.0130.0349.09
5.2.50.0140.0369.05
5.2.40.0130.0359.04
5.2.30.0130.0419.01
5.2.20.0060.0379.00
5.2.10.0080.0378.94
5.2.00.0160.0338.80
5.1.60.0050.0358.09
5.1.50.0070.0318.08
5.1.40.0070.0318.06
5.1.30.0060.0368.41
5.1.20.0110.0398.43
5.1.10.0090.0348.16
5.1.00.0080.0358.16
5.0.50.0070.0276.62
5.0.40.0060.0266.48
5.0.30.0020.0356.29
5.0.20.0020.0226.27
5.0.10.0060.0196.24
5.0.00.0090.0326.23
4.4.90.0070.0214.78
4.4.80.0070.0134.76
4.4.70.0010.0204.76
4.4.60.0040.0214.75
4.4.50.0040.0214.77
4.4.40.0050.0354.70
4.4.30.0070.0194.76
4.4.20.0050.0194.84
4.4.10.0030.0234.85
4.4.00.0050.0314.76
4.3.110.0020.0234.67
4.3.100.0040.0204.67
4.3.90.0050.0194.63
4.3.80.0060.0314.58
4.3.70.0010.0224.63
4.3.60.0070.0184.63
4.3.50.0050.0364.62
4.3.40.0060.0314.54
4.3.30.0000.0323.29
4.3.20.0000.0323.26
4.3.10.0030.0273.22
4.3.00.0170.03313.50

preferences:
38.15 ms | 401 KiB | 5 Q