3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = array( 0 => array( 0 => 'one', 1 => 'two', 2 => 'three' ), 1 => array( 0 => 'four', 1 => 'five', 2 => 'six' ), 2 => array( 0 => 'seven', 1 => 'eight', 2 => 'nine' ), ); print_r(new RecursiveIteratorIterator(new RecursiveArrayIterator($arrays)));

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.0150.00016.63
8.3.50.0070.01019.77
8.3.40.0070.00718.54
8.3.30.0150.00018.94
8.3.20.0070.00020.16
8.3.10.0090.00023.48
8.3.00.0000.00819.26
8.2.180.0150.00016.62
8.2.170.0120.00322.96
8.2.160.0090.00920.26
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00021.01
8.2.110.0100.00020.37
8.2.100.0080.00418.09
8.2.90.0030.00518.83
8.2.80.0000.00817.97
8.2.70.0030.00517.38
8.2.60.0000.00817.66
8.2.50.0030.00518.07
8.2.40.0030.00518.16
8.2.30.0000.00917.94
8.2.20.0000.00817.52
8.2.10.0050.00218.03
8.2.00.0040.00417.48
8.1.270.0050.00323.84
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00321.97
8.1.230.0040.00819.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.00
8.1.180.0060.00318.10
8.1.170.0060.00318.49
8.1.160.0000.00721.89
8.1.150.0040.00418.72
8.1.140.0050.00217.38
8.1.130.0030.00317.77
8.1.120.0030.00317.27
8.1.110.0050.00317.29
8.1.100.0040.00417.47
8.1.90.0000.00717.24
8.1.80.0000.00717.42
8.1.70.0070.00017.36
8.1.60.0090.00017.52
8.1.50.0040.00417.37
8.1.40.0030.00617.32
8.1.30.0040.00417.54
8.1.20.0000.00717.50
8.1.10.0050.00217.54
8.1.00.0000.00717.42
8.0.300.0050.00318.77
8.0.290.0060.00316.75
8.0.280.0000.00718.35
8.0.270.0040.00417.23
8.0.260.0000.00617.11
8.0.250.0030.00316.80
8.0.240.0080.00016.75
8.0.230.0000.00716.76
8.0.220.0040.00416.69
8.0.210.0020.00516.80
8.0.200.0060.00016.94
8.0.190.0040.00416.79
8.0.180.0000.00716.88
8.0.170.0000.00816.82
8.0.160.0000.00716.77
8.0.150.0000.00716.61
8.0.140.0040.00416.82
8.0.130.0060.00013.31
8.0.120.0000.00816.79
8.0.110.0050.00316.88
8.0.100.0030.00616.79
8.0.90.0050.00216.73
8.0.80.0030.01716.77
8.0.70.0040.00416.60
8.0.60.0040.00416.86
8.0.50.0070.00016.91
8.0.30.0140.00617.04
8.0.20.0110.00917.40
8.0.10.0040.00416.77
8.0.00.0080.01116.77
7.4.330.0050.00015.13
7.4.320.0060.00016.57
7.4.300.0030.00316.43
7.4.290.0040.00416.29
7.4.280.0000.00716.37
7.4.270.0030.00316.53
7.4.260.0030.00316.54
7.4.250.0050.00316.53
7.4.240.0030.00416.47
7.4.230.0030.00516.39
7.4.220.0060.01216.51
7.4.210.0080.00716.59
7.4.200.0070.00016.38
7.4.160.0070.00716.41
7.4.150.0150.00417.40
7.4.140.0120.00417.86
7.4.130.0100.01016.29
7.4.120.0060.01116.54
7.4.110.0140.00316.32
7.4.100.0130.00716.37
7.4.90.0090.01216.38
7.4.80.0100.00619.39
7.4.70.0140.00316.29
7.4.60.0090.00916.20
7.4.50.0030.00316.28
7.4.40.0080.00816.22
7.4.30.0170.00516.24
7.4.00.0040.01114.61
7.3.330.0060.00013.07
7.3.320.0020.00212.80
7.3.310.0040.00415.96
7.3.300.0070.00015.96
7.3.290.0030.01616.08
7.3.280.0060.01016.14
7.3.270.0030.01517.40
7.3.260.0110.00716.40
7.3.250.0140.00316.29
7.3.240.0120.00916.35
7.3.230.0110.00716.39
7.3.210.0150.00316.51
7.3.200.0090.00619.39
7.3.190.0060.01016.18
7.3.180.0100.00616.33
7.3.170.0090.00616.27
7.3.160.0090.00616.09
7.3.10.0060.01316.45
7.3.00.0080.00616.48
7.2.330.0090.00916.50
7.2.320.0030.01416.51
7.2.310.0070.01016.60
7.2.300.0060.01016.40
7.2.290.0100.00616.37
7.2.130.0080.01016.84
7.2.120.0060.01116.82
7.2.110.0180.00516.67
7.2.100.0020.01116.71
7.2.90.0050.00716.78
7.2.80.0070.00716.63
7.2.70.0120.00316.58
7.2.60.0110.00316.61
7.2.50.0080.00816.74
7.2.40.0080.01016.71
7.2.30.0070.00916.63
7.2.20.0060.00916.46
7.2.10.0050.00816.53
7.2.00.0090.00817.53
7.1.250.0090.00715.60
7.1.240.0040.01115.75
7.1.230.0100.00315.49
7.1.220.0040.01115.73
7.1.210.0070.00715.54
7.1.200.0040.00715.70
7.1.190.0090.00915.78
7.1.180.0030.00715.46
7.1.170.0070.00415.46
7.1.160.0090.00915.72
7.1.150.0070.00715.47
7.1.140.0000.01615.52
7.1.130.0000.01415.75
7.1.120.0080.00615.63
7.1.110.0070.00715.68
7.1.100.0170.00316.43
7.1.90.0060.00315.70
7.1.80.0030.01015.95
7.1.70.0040.00916.41
7.1.60.0090.01017.55
7.1.50.0120.00916.16
7.1.40.0090.00015.64
7.1.30.0030.01415.55
7.1.20.0030.00915.75
7.1.10.0040.00815.81
7.1.00.0050.04219.13
7.0.330.0040.00715.37
7.0.320.0080.00315.36
7.0.310.0100.01015.07
7.0.300.0040.01115.27
7.0.290.0060.00615.39
7.0.280.0100.00315.26
7.0.270.0070.00315.45
7.0.260.0100.00715.17
7.0.250.0040.00715.29
7.0.240.0070.00015.14
7.0.230.0100.00015.23
7.0.220.0030.01015.40
7.0.210.0060.00615.04
7.0.200.0030.00815.82
7.0.190.0030.01015.28
7.0.180.0030.00515.42
7.0.170.0040.00415.36
7.0.160.0000.01315.13
7.0.150.0040.00415.28
7.0.140.0060.03818.81
7.0.130.0070.00715.39
7.0.120.0100.00715.46
7.0.110.0030.00515.13
7.0.100.0030.00615.19
7.0.90.0040.00715.40
7.0.80.0000.01215.13
7.0.70.0040.00415.32
7.0.60.0040.02517.60
7.0.50.0080.04116.65
7.0.40.0050.04716.66
7.0.30.0080.02816.83
7.0.20.0150.04216.78
7.0.10.0050.04816.55
7.0.00.0080.02316.65
5.6.380.0070.00714.30
5.6.370.0060.00914.35
5.6.360.0040.00814.25
5.6.350.0070.00714.43
5.6.340.0110.01114.20
5.6.330.0120.00314.46
5.6.320.0080.00314.23
5.6.310.0090.00314.18
5.6.300.0120.00014.07
5.6.290.0000.01014.23
5.6.280.0020.04017.47
5.6.270.0060.00914.22
5.6.260.0030.01014.59
5.6.250.0100.00314.12
5.6.240.0070.00414.27
5.6.230.0040.00814.36
5.6.220.0030.01014.21
5.6.210.0110.03417.30
5.6.200.0060.03215.99
5.6.190.0080.03317.42
5.6.180.0180.02217.19
5.6.170.0170.03517.26
5.6.160.0050.03217.47
5.6.150.0100.03816.13
5.6.140.0030.03116.15
5.6.130.0080.02216.20
5.6.120.0070.02317.53
5.6.110.0070.04017.51
5.6.100.0080.02017.45
5.6.90.0070.03517.49
5.6.80.0070.02417.15
5.6.70.2250.02117.26
5.6.60.0070.00713.88
5.6.50.0040.00814.13
5.6.40.0030.01014.35
5.6.30.0040.00714.30
5.6.20.0070.00714.41
5.6.10.0040.01114.16
5.6.00.0050.00514.40
5.5.380.0000.00811.25
5.5.370.0030.00610.97
5.5.360.0080.00410.66
5.5.350.0100.03915.67
5.5.340.0090.04014.40
5.5.330.0120.03015.61
5.5.320.0020.04015.61
5.5.310.0150.04415.80
5.5.300.0070.04014.57
5.5.290.0030.03814.53
5.5.280.0050.04315.96
5.5.270.0030.03215.87
5.5.260.0030.02815.71
5.5.250.0030.05015.61
5.5.240.0150.03815.58
5.5.230.0030.00910.73
5.5.220.0080.00310.72
5.5.210.0090.00310.77
5.5.200.0060.00610.73
5.5.190.0030.00610.92
5.5.180.0060.00610.93
5.5.170.0040.00710.70
5.5.160.0030.00910.96
5.5.150.0080.00310.80
5.5.140.0030.00910.96
5.5.130.0060.00010.42
5.5.120.0040.00410.71
5.5.110.0050.00310.80
5.5.100.0060.00310.52
5.5.90.0030.00310.80
5.5.80.0000.01210.54
5.5.70.0030.00310.53
5.5.60.0030.00310.52
5.5.50.0060.00010.86
5.5.40.0040.00710.93
5.5.30.0030.01010.93
5.5.20.0060.00610.66
5.5.10.0060.00610.75
5.5.00.0080.00010.99
5.4.450.0100.02715.01
5.4.440.0080.02315.19
5.4.430.0130.02315.15
5.4.420.0080.02415.21
5.4.410.0100.02214.75
5.4.400.0220.01814.87
5.4.390.0050.02314.87
5.4.380.0150.03814.73
5.4.370.0210.03514.60
5.4.360.0270.02214.63
5.4.350.0310.03314.75
5.4.340.0300.03114.66
5.4.330.0090.00310.57
5.4.320.0040.02011.52
5.4.310.0060.02311.69
5.4.300.0030.02411.56
5.4.290.0040.02211.49
5.4.280.0070.02011.55
5.4.270.0030.02211.56
5.4.260.0040.02111.42
5.4.250.0040.02011.47
5.4.240.0040.02111.57
5.4.230.0070.02211.49
5.4.220.0020.02211.58
5.4.210.0040.02011.44
5.4.200.0040.02211.63
5.4.190.0060.02211.42
5.4.180.0050.01911.54
5.4.170.0040.02711.59
5.4.160.0070.02511.62
5.4.150.0050.02511.53
5.4.140.0090.02511.46
5.4.130.0070.02511.39
5.4.120.0050.02611.28
5.4.110.0030.02511.43
5.4.100.0060.02511.40
5.4.90.0050.02911.33
5.4.80.0060.02811.32
5.4.70.0060.02811.29
5.4.60.0040.02811.32
5.4.50.0050.02611.42
5.4.40.0050.02311.32
5.4.30.0070.01711.34
5.4.20.0040.02111.41
5.4.10.0050.02011.37
5.4.00.0020.02311.08
5.3.290.0080.01911.62
5.3.280.0060.02111.46
5.3.270.0080.02011.56
5.3.260.0030.02411.59
5.3.250.0060.02211.45
5.3.240.0060.01911.48
5.3.230.0040.02211.56
5.3.220.0070.02011.52
5.3.210.0060.02011.57
5.3.200.0030.02211.44
5.3.190.0070.01911.48
5.3.180.0080.02211.58
5.3.170.0020.02611.58
5.3.160.0020.02811.57
5.3.150.0050.02111.50
5.3.140.0040.02111.60
5.3.130.0050.02311.58
5.3.120.0050.02311.42
5.3.110.0100.02011.55
5.3.100.0050.02111.19
5.3.90.0040.02011.27
5.3.80.0050.02011.13
5.3.70.0040.02111.07
5.3.60.0040.02311.21
5.3.50.0050.02011.17
5.3.40.0090.02211.17
5.3.30.0030.02111.16
5.3.20.0070.01911.11
5.3.10.0050.02610.93
5.3.00.0040.02710.95
5.2.170.0040.0219.57
5.2.160.0060.0219.57
5.2.150.0020.0189.57
5.2.140.0050.0159.57
5.2.130.0070.0189.55
5.2.120.0010.0209.54
5.2.110.0050.0179.55
5.2.100.0070.0149.55
5.2.90.0030.0199.55
5.2.80.0050.0169.54
5.2.70.0050.0179.54
5.2.60.0040.0199.52
5.2.50.0060.0159.51
5.2.40.0030.0209.49
5.2.30.0070.0159.48
5.2.20.0040.0179.48
5.2.10.0040.0189.44
5.2.00.0080.0149.37
5.1.60.0050.0139.01
5.1.50.0050.0139.01
5.1.40.0040.0159.00
5.1.30.0050.0149.17
5.1.20.0020.0179.18
5.1.10.0050.0119.04
5.1.00.0050.0149.04
5.0.50.0040.0108.29
5.0.40.0040.0118.22
5.0.30.0020.0178.12
5.0.20.0060.0098.11
5.0.10.0060.0118.10
5.0.00.0050.0158.09
4.4.90.0030.0107.37
4.4.80.0020.0097.36
4.4.70.0020.0117.35
4.4.60.0020.0117.36
4.4.50.0020.0107.37
4.4.40.0030.0157.33
4.4.30.0020.0097.36
4.4.20.0020.0087.40
4.4.10.0030.0087.40
4.4.00.0040.0167.36
4.3.110.0030.0117.31
4.3.100.0020.0107.31
4.3.90.0020.0107.30
4.3.80.0010.0157.27
4.3.70.0020.0107.29
4.3.60.0020.0087.29
4.3.50.0040.0097.29
4.3.40.0020.0147.25
4.3.30.0020.0106.62
4.3.20.0020.0116.61
4.3.10.0020.0106.59
4.3.00.0040.00714.10

preferences:
43.64 ms | 400 KiB | 5 Q