3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b', array('c'), array('d', array('e','f'))); $iterator = new \RecursiveIteratorIterator(new \RecursiveArrayIterator($arr)); var_dump(iterator_to_array($iterator, true));

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.0120.00418.43
8.3.50.0140.00621.20
8.3.40.0140.00418.77
8.3.30.0150.00620.16
8.3.20.0050.00522.13
8.3.10.0080.00021.96
8.3.00.0040.00422.40
8.2.180.0120.00316.63
8.2.170.0000.01522.96
8.2.160.0030.01722.25
8.2.150.0000.00924.18
8.2.140.0000.00924.66
8.2.130.0060.00326.16
8.2.120.0060.00320.63
8.2.110.0030.00619.27
8.2.100.0000.01117.88
8.2.90.0040.00418.98
8.2.80.0070.00019.34
8.2.70.0120.00017.38
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0000.00819.76
8.2.30.0000.00719.35
8.2.20.0080.00017.64
8.2.10.0050.00317.66
8.2.00.0000.00817.79
8.1.280.0040.01125.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0050.00523.88
8.1.230.0090.00320.86
8.1.220.0040.00418.77
8.1.210.0050.00318.98
8.1.200.0080.00417.10
8.1.190.0080.00017.41
8.1.180.0000.00918.10
8.1.170.0030.00618.46
8.1.160.0000.01118.87
8.1.150.0060.00318.57
8.1.140.0110.00417.30
8.1.130.0050.00217.86
8.1.120.0040.00417.30
8.1.110.0000.00717.42
8.1.100.0040.00417.43
8.1.90.0030.00617.41
8.1.80.0000.00817.42
8.1.70.0030.00317.36
8.1.60.0060.00317.54
8.1.50.0080.00017.46
8.1.40.0040.00417.41
8.1.30.0050.00317.57
8.1.20.0030.00517.48
8.1.10.0040.00417.58
8.1.00.0100.00017.48
8.0.300.0040.00419.95
8.0.290.0040.00417.18
8.0.280.0000.00718.33
8.0.270.0030.00417.20
8.0.260.0070.00016.79
8.0.250.0030.00316.98
8.0.240.0000.00816.90
8.0.230.0030.00316.84
8.0.220.0030.00316.85
8.0.210.0000.00716.72
8.0.200.0000.00716.90
8.0.190.0080.00016.89
8.0.180.0080.00016.84
8.0.170.0050.00316.84
8.0.160.0000.00716.84
8.0.150.0100.00016.90
8.0.140.0000.00716.71
8.0.130.0030.00313.18
8.0.120.0020.00516.68
8.0.110.0000.00716.77
8.0.100.0000.00716.65
8.0.90.0030.00516.61
8.0.80.0060.00916.82
8.0.70.0040.00416.70
8.0.60.0000.00816.85
8.0.50.0040.00416.82
8.0.30.0130.00616.91
8.0.20.0100.01017.40
8.0.10.0080.00016.98
8.0.00.0090.00916.74
7.4.330.0030.00316.83
7.4.320.0090.00016.50
7.4.300.0070.00016.38
7.4.290.0070.00016.34
7.4.280.0060.00316.48
7.4.270.0040.00416.61
7.4.260.0030.00313.16
7.4.250.0040.00416.51
7.4.240.0040.00416.44
7.4.230.0000.00716.32
7.4.220.0130.00616.40
7.4.210.0110.00516.54
7.4.200.0080.00016.62
7.4.190.0000.00716.63
7.4.160.0100.00716.45
7.4.150.0060.01317.40
7.4.140.0250.01617.86
7.4.130.0040.01416.51
7.4.120.0110.01016.46
7.4.110.0180.00316.46
7.4.100.0030.01316.41
7.4.90.0140.00316.28
7.4.80.0030.01619.39
7.4.70.0000.01616.45
7.4.60.0130.00316.26
7.4.50.0040.00416.58
7.4.40.0070.01022.77
7.4.30.0100.00716.31
7.4.00.0080.00814.81
7.3.330.0000.00612.98
7.3.320.0000.00612.98
7.3.310.0000.00716.15
7.3.300.0000.00616.16
7.3.290.0090.00616.12
7.3.280.0100.00516.17
7.3.270.0030.01617.40
7.3.260.0120.00816.25
7.3.250.0120.00916.26
7.3.240.0090.00916.23
7.3.230.0030.01316.39
7.3.210.0100.00616.49
7.3.200.0120.00419.39
7.3.190.0060.01316.46
7.3.180.0070.01516.21
7.3.170.0090.00616.39
7.3.160.0090.00616.52
7.3.120.0070.00914.42
7.3.110.0040.01214.85
7.3.100.0060.01214.74
7.3.90.0110.00514.64
7.3.80.0010.01114.77
7.3.70.0030.00814.79
7.3.60.0080.00614.64
7.3.50.0030.01114.49
7.3.40.0050.00614.42
7.3.30.0050.00814.75
7.3.20.0060.00716.51
7.3.10.0060.00716.43
7.3.00.0040.00916.49
7.2.330.0150.00316.50
7.2.320.0030.01416.59
7.2.310.0060.01216.43
7.2.300.0140.00416.43
7.2.290.0030.01316.47
7.2.250.0050.01414.95
7.2.240.0050.01414.78
7.2.230.0080.00814.83
7.2.220.0070.00714.79
7.2.210.0060.00914.97
7.2.200.0060.00415.03
7.2.190.0060.00614.94
7.2.180.0080.00514.93
7.2.170.0060.00615.00
7.2.160.0000.01414.95
7.2.150.0060.00617.01
7.2.140.0040.00816.66
7.2.130.0040.00916.62
7.2.120.0050.00816.84
7.2.110.0100.00516.88
7.2.100.0030.00716.73
7.2.90.0090.00516.89
7.2.80.0050.00916.90
7.2.70.0070.00616.55
7.2.60.0100.00516.88
7.2.50.0070.00616.71
7.2.40.0030.01016.88
7.2.30.0020.00816.63
7.2.20.0030.00816.62
7.2.10.0040.01116.70
7.2.00.0070.00717.57
7.1.330.0050.00815.63
7.1.320.0050.00815.65
7.1.310.0030.01015.66
7.1.300.0060.00815.63
7.1.290.0060.00415.81
7.1.280.0070.00515.73
7.1.270.0050.00515.71
7.1.260.0080.00315.67
7.1.250.0040.00615.78
7.1.240.0040.00715.74
7.1.230.0040.01115.50
7.1.220.0070.00715.52
7.1.210.0080.00615.70
7.1.200.0060.00915.84
7.1.190.0030.01015.68
7.1.180.0060.00915.96
7.1.170.0130.00015.60
7.1.160.0030.01015.74
7.1.150.0030.01015.62
7.1.140.0060.01215.79
7.1.130.0040.00415.76
7.1.120.0120.00015.61
7.1.110.0070.00715.92
7.1.100.0060.00416.91
7.1.90.0100.00015.92
7.1.80.0110.00415.70
7.1.70.0020.00816.30
7.1.60.0080.00517.54
7.1.50.0100.01116.40
7.1.40.0100.00015.83
7.1.30.0080.00515.70
7.1.20.0030.01015.73
7.1.10.0060.00915.80
7.1.00.0020.02219.08
7.0.330.0080.00415.16
7.0.320.0060.00915.16
7.0.310.0070.00415.46
7.0.300.0000.01415.46
7.0.290.0030.00615.35
7.0.280.0080.00815.48
7.0.270.0040.00915.39
7.0.260.0030.01115.41
7.0.250.0030.01015.21
7.0.240.0080.00615.43
7.0.230.0070.00415.45
7.0.220.0040.01115.42
7.0.210.0030.01015.25
7.0.200.0080.00815.18
7.0.190.0060.00615.50
7.0.180.0080.00015.31
7.0.170.0000.00915.53
7.0.160.0030.00615.52
7.0.150.0090.00615.62
7.0.140.0050.04318.64
7.0.130.0090.00615.47
7.0.120.0000.00815.14
7.0.110.0100.00315.17
7.0.100.0030.00815.23
7.0.90.0000.01315.47
7.0.80.0000.00815.37
7.0.70.0050.03218.60
7.0.60.0050.03518.55
7.0.50.0000.03918.86
7.0.40.0050.02716.84
7.0.30.0080.03716.84
7.0.20.0070.04516.88
7.0.10.0130.04016.80
7.0.00.0080.03116.85
5.6.400.0090.00314.57
5.6.390.0090.00614.58
5.6.380.0060.00614.22
5.6.370.0060.00314.12
5.6.360.0000.01414.33
5.6.350.0000.01014.42
5.6.340.0030.01014.38
5.6.330.0110.00314.16
5.6.320.0030.01014.63
5.6.310.0100.00014.23
5.6.300.0040.01114.53
5.6.290.0030.00914.55
5.6.280.0060.03817.61
5.6.270.0040.00414.02
5.6.260.0040.00414.52
5.6.250.0000.00814.43
5.6.240.0040.00714.21
5.6.230.0080.00014.24
5.6.220.0050.04317.44
5.6.210.0040.04417.46
5.6.200.0030.04817.69
5.6.190.0040.04217.67
5.6.180.0060.03517.55
5.6.170.0020.04017.68
5.6.160.0070.03817.66
5.6.150.0140.04017.69
5.6.140.0050.04417.67
5.6.130.0070.04617.62
5.6.120.0050.03617.73
5.6.110.0070.04017.65
5.6.100.0030.04517.60
5.6.90.0070.04617.72
5.6.80.0080.03617.43
5.6.70.0030.04317.24
5.6.60.0030.04217.34
5.6.50.0070.04017.29
5.6.40.0070.03717.34
5.6.30.0100.03817.32
5.6.20.0070.04417.34
5.6.10.0050.04317.36
5.6.00.0050.04317.32
5.5.380.0030.01214.36
5.5.370.0120.00314.02
5.5.360.0030.03517.43
5.5.350.0040.03717.31
5.5.340.0050.03917.59
5.5.330.0040.04417.48
5.5.320.0080.04017.46
5.5.310.0060.04017.57
5.5.300.0070.04317.62
5.5.290.0030.04817.49
5.5.280.0050.04517.65
5.5.270.0030.04317.58
5.5.260.0070.04817.41
5.5.250.0030.04617.45
5.5.240.0030.03917.13
5.5.230.0030.03217.25
5.5.220.0070.03617.21
5.5.210.0050.02717.16
5.5.200.0120.03817.29
5.5.190.0050.04217.31
5.5.180.0060.04217.30
5.5.170.0090.00614.36
5.5.160.0030.04317.21
5.5.150.0080.02217.30
5.5.140.0030.02417.10
5.5.130.0110.01717.00
5.5.120.0060.02217.16
5.5.110.0040.02417.09
5.5.100.0030.02217.12
5.5.90.0090.01817.16
5.5.80.0030.02217.20
5.5.70.0020.02017.13
5.5.60.0060.02516.99
5.5.50.0020.02017.08
5.5.40.0030.04517.00
5.5.30.0020.04717.11
5.5.20.0030.04017.20
5.5.10.0030.01817.06
5.5.00.0030.02217.08
5.4.450.0030.04116.40
5.4.440.0050.04416.43
5.4.430.0030.04316.38
5.4.420.0050.04116.36
5.4.410.0030.04116.42
5.4.400.0050.02816.24
5.4.390.0020.04116.28
5.4.380.0050.03516.19
5.4.370.0050.04316.32
5.4.360.0040.04316.35
5.4.350.0020.04016.33
5.4.340.0030.04416.34
5.4.330.0060.00613.59
5.4.320.0030.03116.31
5.4.310.0000.04016.18
5.4.300.0020.02416.30
5.4.290.0000.02416.26
5.4.280.0030.02516.32
5.4.270.0030.02116.23
5.4.260.0050.02016.33
5.4.250.0000.02316.34
5.4.240.0060.01816.33
5.4.230.0020.01916.30
5.4.220.0020.03016.34
5.4.210.0000.02616.38
5.4.200.0020.02516.25
5.4.190.0020.03316.21
5.4.180.0080.02616.32
5.4.170.0080.01816.34
5.4.160.0030.02016.34
5.4.150.0070.02716.30
5.4.140.0000.02414.96
5.4.130.0030.01614.93
5.4.120.0010.01914.95
5.4.110.0040.02514.96
5.4.100.0030.01614.97
5.4.90.0050.01515.00
5.4.80.0020.02314.94
5.4.70.0010.02514.88
5.4.60.0050.01814.88
5.4.50.0030.02014.99
5.4.40.0020.02414.97
5.4.30.0030.01814.99
5.4.20.0030.02014.93
5.4.10.0000.02114.88
5.4.00.0030.01814.67
5.3.290.0030.02814.07
5.3.280.0030.01514.02
5.3.270.0050.03714.03
5.3.260.0030.02514.03
5.3.250.0030.02814.01
5.3.240.0060.02214.07
5.3.230.0070.01714.07
5.3.220.0030.02214.07
5.3.210.0010.02414.05
5.3.200.0000.02314.07
5.3.190.0000.01814.01
5.3.180.0010.02314.06
5.3.170.0030.02114.05
5.3.160.0070.01814.03
5.3.150.0010.01614.00
5.3.140.0020.01814.00
5.3.130.0000.02414.00
5.3.120.0030.02114.00
5.3.110.0010.02113.98
5.3.100.0020.01613.80
5.3.90.0040.01913.75
5.3.80.0020.01713.73
5.3.70.0010.01813.73
5.3.60.0000.02013.77
5.3.50.0030.01513.74
5.3.40.0030.01513.65
5.3.30.0020.01813.74
5.3.20.0030.02013.64
5.3.10.0060.01513.61
5.3.00.0040.01713.54
5.2.170.0000.02311.13
5.2.160.0030.02011.05
5.2.150.0000.02311.05
5.2.140.0000.03011.13
5.2.130.0070.02711.05
5.2.120.0000.03711.05
5.2.110.0030.02011.05
5.2.100.0000.02711.09
5.2.90.0000.02311.11
5.2.80.0000.03011.08
5.2.70.0030.03311.06
5.2.60.0030.02011.05
5.2.50.0000.03311.05
5.2.40.0030.06011.05
5.2.30.0070.03311.05
5.2.20.0000.06311.05
5.2.10.0030.04311.05
5.2.00.0030.06011.05
5.1.60.0030.06711.05
5.1.50.0000.06011.05
5.1.40.0000.04711.05
5.1.30.0000.02711.05
5.1.20.0030.04711.05
5.1.10.0030.03311.05
5.1.00.0000.04011.05
5.0.50.0000.05311.05
5.0.40.0030.04311.05
5.0.30.0030.06311.05
5.0.20.0030.04011.05
5.0.10.0000.04711.05
5.0.00.0030.04711.05
4.4.90.0000.01311.05
4.4.80.0000.01011.05
4.4.70.0000.03011.05
4.4.60.0000.03711.05
4.4.50.0070.02011.05
4.4.40.0000.06011.05
4.4.30.0030.03711.05
4.4.20.0000.02011.05
4.4.10.0000.03711.05
4.4.00.0000.05011.05
4.3.110.0070.03011.05
4.3.100.0000.03311.05
4.3.90.0070.02011.05
4.3.80.0000.05711.05
4.3.70.0030.02011.05
4.3.60.0070.02311.05
4.3.50.0000.02311.05
4.3.40.0000.05311.05
4.3.30.0030.02711.05
4.3.20.0000.03311.05
4.3.10.0000.03711.05
4.3.00.0000.03711.05

preferences:
58.48 ms | 401 KiB | 5 Q