3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = array( 0 => array('one', 1 => 'two', 2 => 'three' ), 1 => array('four', 1 => 'five', 2 => 'six' ), 2 => array( 0 => 'seven', 1 => 'eight', 2 => 'nine' ), ); print_r(iterator_to_array(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.0040.01416.63
8.3.50.0080.01022.91
8.3.40.0110.00318.45
8.3.30.0070.00718.89
8.3.20.0000.00820.13
8.3.10.0080.00023.61
8.3.00.0080.00019.13
8.2.180.0070.00716.50
8.2.170.0130.00722.96
8.2.160.0100.00720.21
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00620.86
8.2.110.0000.01020.35
8.2.100.0110.00017.97
8.2.90.0000.00819.14
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0050.00317.80
8.2.50.0030.00518.07
8.2.40.0060.00318.06
8.2.30.0040.00418.04
8.2.20.0040.00417.51
8.2.10.0080.00018.00
8.2.00.0060.00317.66
8.1.280.0040.01125.92
8.1.270.0030.00623.72
8.1.260.0070.00026.35
8.1.250.0020.00528.09
8.1.240.0050.00322.06
8.1.230.0040.00817.52
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0030.00618.46
8.1.160.0050.00321.94
8.1.150.0070.00018.86
8.1.140.0020.00517.36
8.1.130.0000.00717.81
8.1.120.0000.00717.38
8.1.110.0040.00417.37
8.1.100.0000.00717.27
8.1.90.0040.00417.44
8.1.80.0050.00317.35
8.1.70.0000.00717.34
8.1.60.0000.00817.52
8.1.50.0040.00417.45
8.1.40.0000.00717.30
8.1.30.0000.00817.54
8.1.20.0040.00417.50
8.1.10.0040.00417.48
8.1.00.0000.00717.36
8.0.300.0030.00518.77
8.0.290.0040.00416.63
8.0.280.0070.00018.41
8.0.270.0000.00717.12
8.0.260.0030.00317.18
8.0.250.0030.00316.75
8.0.240.0080.00016.72
8.0.230.0000.00716.78
8.0.220.0040.00416.81
8.0.210.0040.00416.83
8.0.200.0060.00016.91
8.0.190.0020.00516.85
8.0.180.0030.00316.87
8.0.170.0040.00416.83
8.0.160.0030.00416.76
8.0.150.0000.00816.82
8.0.140.0040.00416.68
8.0.130.0030.00313.21
8.0.120.0000.00816.69
8.0.110.0070.00016.88
8.0.100.0000.00816.83
8.0.90.0000.00716.93
8.0.80.0030.01216.76
8.0.70.0030.00516.62
8.0.60.0000.00716.78
8.0.50.0040.00416.86
8.0.30.0090.01216.89
8.0.20.0110.01017.40
8.0.10.0080.00016.80
8.0.00.0090.01316.59
7.4.330.0000.00515.08
7.4.320.0030.00316.53
7.4.300.0060.00016.54
7.4.290.0000.00616.42
7.4.280.0050.00316.41
7.4.270.0070.00016.51
7.4.260.0000.00716.33
7.4.250.0090.00016.42
7.4.240.0040.00416.38
7.4.230.0030.00316.31
7.4.220.0130.00316.42
7.4.210.0000.01516.50
7.4.200.0000.00816.54
7.4.160.0130.00316.34
7.4.150.0060.01117.40
7.4.140.0110.00517.86
7.4.130.0020.01616.47
7.4.120.0050.01416.40
7.4.110.0090.00616.53
7.4.100.0070.01016.50
7.4.90.0090.00816.25
7.4.80.0070.01019.39
7.4.70.0140.00316.45
7.4.60.0070.01016.24
7.4.50.0000.00716.30
7.4.40.0120.00916.57
7.4.30.0000.01516.42
7.4.00.0100.00314.92
7.3.330.0000.00612.97
7.3.320.0000.00512.82
7.3.310.0050.00316.06
7.3.300.0040.00416.04
7.3.290.0140.00016.16
7.3.280.0060.01316.20
7.3.270.0130.00417.40
7.3.260.0150.00316.65
7.3.250.0080.00816.36
7.3.240.0110.00816.38
7.3.230.0100.00716.39
7.3.210.0140.00416.13
7.3.200.0030.01319.39
7.3.190.0090.00916.39
7.3.180.0030.01216.11
7.3.170.0060.01216.27
7.3.160.0080.00816.17
7.3.120.0030.01414.64
7.3.110.0080.00014.92
7.3.100.0030.00914.62
7.3.90.0060.00614.50
7.3.80.0060.00314.54
7.3.70.0000.01414.63
7.3.60.0060.00614.43
7.3.50.0000.01214.35
7.3.40.0030.00714.73
7.3.30.0000.01714.71
7.3.20.0040.00816.72
7.3.10.0080.00816.55
7.3.00.0080.00716.38
7.2.330.0080.00816.55
7.2.320.0100.00716.59
7.2.310.0090.00916.43
7.2.300.0070.01016.65
7.2.290.0030.01316.60
7.2.240.0070.00714.86
7.2.230.0080.00814.77
7.2.220.0000.01114.84
7.2.210.0110.00714.70
7.2.200.0060.00914.83
7.2.190.0100.00314.77
7.2.180.0060.00914.90
7.2.170.0030.01314.58
7.2.160.0090.00914.96
7.2.150.0060.00916.72
7.2.140.0100.00716.70
7.2.130.0070.01016.71
7.2.120.0080.00616.85
7.2.110.0010.01316.76
7.2.100.0060.01116.76
7.2.90.0030.01016.83
7.2.80.0070.00716.72
7.2.70.0070.00816.63
7.2.60.0050.00816.72
7.2.50.0040.00916.67
7.2.40.0070.00616.72
7.2.30.0060.00716.59
7.2.20.0000.01116.73
7.2.10.0100.00516.70
7.2.00.0090.00617.71
7.1.330.0060.00615.75
7.1.320.0060.00615.73
7.1.310.0090.00316.02
7.1.300.0120.00015.53
7.1.290.0110.00415.88
7.1.280.0000.01415.59
7.1.270.0040.01215.69
7.1.260.0090.00615.71
7.1.250.0060.00515.60
7.1.100.0270.00316.99
7.1.70.0040.00717.19
7.1.60.0090.01519.46
7.1.50.0130.01017.02
7.1.00.0000.07722.40
7.0.200.0030.00716.62
7.0.140.0100.06722.22
7.0.60.0170.07319.89
7.0.50.0100.07317.77
7.0.40.0030.04320.11
7.0.30.0530.07320.20
7.0.20.0300.03720.25
7.0.10.0030.05720.23
7.0.00.0100.06720.14
5.6.280.0030.07020.85
5.6.210.0000.04020.62
5.6.200.0070.05718.16
5.6.190.0100.08720.67
5.6.180.0230.03720.64
5.6.170.0230.07320.48
5.6.160.0070.08020.46
5.6.150.0030.05018.29
5.6.140.0030.08718.21
5.6.130.0070.08718.11
5.6.120.0070.08721.12
5.6.110.0170.07321.04
5.6.100.0100.07020.88
5.6.90.0100.06720.96
5.6.80.0230.06320.44
5.6.70.4500.04020.24
5.5.350.0170.05320.33
5.5.340.0130.07718.07
5.5.330.0170.07020.40
5.5.320.0000.04020.26
5.5.310.0330.03720.30
5.5.300.0030.04317.95
5.5.290.0000.04717.98
5.5.280.0030.04320.87
5.5.270.0070.08020.75
5.5.260.0000.06020.86
5.5.250.0170.07320.57
5.5.240.0170.02720.03
5.4.450.0070.04319.34
5.4.440.0300.03719.32
5.4.430.0530.04319.45
5.4.420.0070.05019.54
5.4.410.0330.03719.33
5.4.400.0130.03019.27
5.4.390.0170.02319.21
5.4.380.0370.05318.63
5.4.370.0230.06018.78
5.4.360.0470.06018.54
5.4.350.0330.06718.74
5.4.340.0270.05318.73
5.4.320.0030.04012.48
5.4.310.0090.03512.48
5.4.300.0040.03912.48
5.4.290.0110.03312.48
5.4.280.0060.03612.38
5.4.270.0030.03912.38
5.4.260.0090.03512.38
5.4.250.0120.03212.38
5.4.240.0070.03512.38
5.4.230.0080.03512.37
5.4.220.0050.03712.37
5.4.210.0100.03212.37
5.4.200.0060.04112.37
5.4.190.0070.04312.36
5.4.180.0070.03612.36
5.4.170.0080.03412.38
5.4.160.0080.03412.38
5.4.150.0060.03512.37
5.4.140.0050.03812.05
5.4.130.0090.03812.04
5.4.120.0080.03312.00
5.4.110.0040.03711.99
5.4.100.0030.03912.00
5.4.90.0060.03711.99
5.4.80.0060.03711.99
5.4.70.0060.03511.99
5.4.60.0040.03711.99
5.4.50.0130.04311.99
5.4.40.0130.04311.98
5.4.30.0080.04111.98
5.4.20.0040.03711.98
5.4.10.0100.04311.98
5.4.00.0070.05411.46
5.3.290.0080.04712.80
5.3.280.0050.03912.71
5.3.270.0060.03912.72
5.3.260.0070.03812.72
5.3.250.0070.03712.72
5.3.240.0080.03712.72
5.3.230.0100.03612.71
5.3.220.0060.04112.68
5.3.210.0120.04412.68
5.3.200.0040.05312.68
5.3.190.0100.03912.68
5.3.180.0050.04212.67
5.3.170.0050.03812.67
5.3.160.0050.03812.67
5.3.150.0030.04012.68
5.3.140.0100.03212.66
5.3.130.0060.03912.66
5.3.120.0080.03712.66
5.3.110.0090.05012.66
5.3.100.0030.04012.12
5.3.90.0070.03612.09
5.3.80.0050.03712.08
5.3.70.0060.03612.08
5.3.60.0050.03812.07
5.3.50.0060.03712.02
5.3.40.0070.03612.02
5.3.30.0080.03411.98
5.3.20.0050.03711.75
5.3.10.0040.03711.71
5.3.00.0040.03811.70
5.2.170.0020.0339.21
5.2.160.0030.0319.20
5.2.150.0050.0309.21
5.2.140.0020.0349.21
5.2.130.0060.0279.16
5.2.120.0030.0309.16
5.2.110.0020.0329.18
5.2.100.0060.0279.16
5.2.90.0060.0279.17
5.2.80.0040.0319.16
5.2.70.0040.0309.16
5.2.60.0040.0319.12
5.2.50.0050.0319.09
5.2.40.0030.0309.06
5.2.30.0030.0329.04
5.2.20.0040.0309.03
5.2.10.0050.0278.93
5.2.00.0060.0288.80
5.1.60.0050.0238.07
5.1.50.0050.0248.06
5.1.40.0050.0248.04
5.1.30.0040.0268.39
5.1.20.0040.0278.41
5.1.10.0060.0248.14
5.1.00.0030.0288.14
5.0.50.0020.0236.62
5.0.40.0020.0216.48
5.0.30.0030.0326.29
5.0.20.0040.0196.26
5.0.10.0020.0216.24
5.0.00.0040.0296.23
4.4.90.0030.0154.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0000.0274.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0020.0264.76
4.3.110.0050.0134.67
4.3.100.0030.0154.67
4.3.90.0040.0134.63
4.3.80.0020.0254.59
4.3.70.0040.0134.63
4.3.60.0040.0134.63
4.3.50.0030.0154.63
4.3.40.0060.0234.54
4.3.30.0040.0183.28
4.3.20.0010.0173.26
4.3.10.0020.0163.22
4.3.00.0000.01718.23

preferences:
66.59 ms | 401 KiB | 5 Q