3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "parent" => [ "title" => null ] ]; var_dump(iterator_to_array(new RecursiveIterator(new ArrayIterator($array)), 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.0130.00316.63
8.3.50.0070.00716.36
8.3.40.0170.00318.80
8.3.30.0030.01218.54
8.3.20.0070.00020.08
8.3.10.0040.00421.73
8.3.00.0000.00723.48
8.2.180.0100.00618.46
8.2.170.0070.00722.96
8.2.160.0070.00720.21
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0030.00521.00
8.2.120.0040.00426.35
8.2.110.0060.00322.25
8.2.100.0000.01017.90
8.2.90.0030.00519.13
8.2.80.0000.00718.03
8.2.70.0060.00317.63
8.2.60.0040.00417.79
8.2.50.0060.00318.07
8.2.40.0000.00822.08
8.2.30.0050.00220.57
8.2.20.0050.00217.73
8.2.10.0000.00718.09
8.2.00.0050.00317.91
8.1.280.0040.01125.92
8.1.270.0030.00620.32
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.17
8.1.230.0070.00419.21
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0030.00517.10
8.1.180.0030.00518.10
8.1.170.0040.00418.65
8.1.160.0000.00820.62
8.1.150.0000.00718.68
8.1.140.0000.00819.51
8.1.130.0070.00017.50
8.1.120.0040.00417.30
8.1.110.0000.00717.39
8.1.100.0040.00417.38
8.1.90.0050.00317.29
8.1.80.0070.00017.22
8.1.70.0000.00717.27
8.1.60.0050.00317.51
8.1.50.0030.00517.35
8.1.40.0000.00917.48
8.1.30.0000.00817.52
8.1.20.0070.00017.53
8.1.10.0000.00817.63
8.1.00.0000.00717.50
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0000.00718.32
8.0.270.0000.00817.12
8.0.260.0000.00717.19
8.0.250.0030.00316.98
8.0.240.0070.00016.90
8.0.230.0030.00316.87
8.0.220.0040.00316.85
8.0.210.0000.00816.80
8.0.200.0030.00316.80
8.0.190.0050.00316.87
8.0.180.0030.00516.90
8.0.170.0000.00816.91
8.0.160.0050.00216.82
8.0.150.0000.00816.89
8.0.140.0040.00416.88
8.0.130.0030.00313.34
8.0.120.0000.00716.74
8.0.110.0000.00716.89
8.0.100.0040.00416.75
8.0.90.0050.00316.81
8.0.80.0120.00316.82
8.0.70.0070.00016.70
8.0.60.0000.00716.87
8.0.50.0000.00716.92
8.0.30.0080.01216.88
8.0.20.0130.00917.40
8.0.10.0000.00716.84
8.0.00.0140.00416.56
7.4.330.0050.00016.84
7.4.320.0000.00616.42
7.4.300.0000.00716.64
7.4.290.0050.00316.50
7.4.280.0040.00416.49
7.4.270.0030.00316.57
7.4.260.0050.00316.57
7.4.250.0030.00316.55
7.4.240.0030.00516.55
7.4.230.0000.00716.65
7.4.220.0140.00716.53
7.4.210.0030.01016.67
7.4.200.0000.00716.33
7.4.160.0090.00616.53
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0030.01416.54
7.4.120.0120.00816.48
7.4.110.0000.01816.46
7.4.100.0110.01016.41
7.4.90.0180.00416.54
7.4.80.0130.00619.39
7.4.70.0000.01616.40
7.4.60.0070.01016.48
7.4.50.0040.01116.46
7.4.40.0130.00916.41
7.4.30.0100.00716.37
7.4.10.0120.00414.96
7.4.00.0070.00914.88
7.3.330.0050.00013.08
7.3.320.0020.00213.10
7.3.310.0000.00616.12
7.3.300.0000.00716.15
7.3.290.0080.00716.25
7.3.280.0060.01016.29
7.3.270.0070.01517.40
7.3.260.0090.00816.23
7.3.250.0080.00916.28
7.3.240.0080.00916.46
7.3.230.0000.01716.39
7.3.210.0070.01016.29
7.3.200.0110.00616.57
7.3.190.0090.01316.21
7.3.180.0060.00916.44
7.3.170.0130.00916.44
7.3.160.0060.00916.30
7.3.130.0110.00714.85
7.3.120.0050.01214.93
7.3.110.0080.01014.80
7.3.100.0050.01014.64
7.3.90.0050.00814.62
7.3.80.0020.01014.75
7.3.70.0100.00114.64
7.3.60.0060.00914.75
7.3.50.0010.00914.83
7.3.40.0060.00414.62
7.3.30.0000.01314.75
7.3.20.0080.00616.45
7.3.10.0030.00816.38
7.3.00.0080.00516.53
7.2.330.0080.01116.60
7.2.320.0060.01216.15
7.2.310.0110.00716.33
7.2.300.0080.01216.53
7.2.290.0130.00316.25
7.2.260.0070.01014.77
7.2.250.0070.01015.05
7.2.240.0060.01014.65
7.2.230.0050.01414.75
7.2.220.0060.00615.04
7.2.210.0070.00714.80
7.2.200.0080.00514.67
7.2.190.0080.00714.89
7.2.180.0040.00914.90
7.2.170.0030.00914.70
7.2.160.0040.00814.59
7.2.150.0040.01116.86
7.2.140.0000.01416.48
7.2.130.0030.00616.63
7.2.120.0100.00316.74
7.2.110.0000.01616.87
7.2.100.0000.01616.88
7.2.90.0090.00316.90
7.2.80.0090.00616.74
7.2.70.0030.00616.89
7.2.60.0050.01016.84
7.2.50.0070.00316.82
7.2.40.0060.00916.89
7.2.30.0070.01316.85
7.2.20.0030.01016.56
7.2.10.0090.00616.66
7.2.00.0090.00917.85
7.1.330.0050.01115.46
7.1.320.0060.00715.76
7.1.310.0070.00615.68
7.1.300.0020.01115.61
7.1.290.0030.00915.65
7.1.280.0090.00515.60
7.1.270.0040.01115.48
7.1.260.0120.00215.68
7.1.250.0090.00315.66
7.1.240.0030.01415.64
7.1.230.0030.01215.66
7.1.220.0000.01015.63
7.1.210.0040.00815.61
7.1.200.0080.00815.53
7.1.190.0080.00415.62
7.1.180.0070.00715.46
7.1.170.0030.01015.46
7.1.160.0040.00715.57
7.1.150.0140.00015.33
7.1.140.0030.00615.40
7.1.130.0040.01115.77
7.1.120.0110.00015.72
7.1.110.0110.00415.50
7.1.100.0080.00616.59
7.1.90.0000.01415.69
7.1.80.0030.01015.62
7.1.70.0090.00316.40
7.1.60.0070.01317.55
7.1.50.0030.00916.27
7.1.40.0030.01015.63
7.1.30.0040.00715.48
7.1.20.0040.00815.74
7.1.10.0030.01215.53
7.1.00.0030.04219.08
7.0.330.0030.01415.32
7.0.320.0060.00615.36
7.0.310.0060.00715.33
7.0.300.0070.00715.13
7.0.290.0070.00315.45
7.0.280.0130.00315.29
7.0.270.0110.00415.34
7.0.260.0070.00715.14
7.0.250.0070.00715.39
7.0.240.0030.01415.34
7.0.230.0040.00715.46
7.0.220.0060.00615.40
7.0.210.0000.00915.30
7.0.200.0040.00715.98
7.0.190.0030.01315.21
7.0.180.0120.00315.01
7.0.170.0120.00315.24
7.0.160.0060.00615.21
7.0.150.0100.00315.13
7.0.140.0090.00615.08
7.0.130.0030.00715.38
7.0.120.0000.01415.37
7.0.110.0040.01115.38
7.0.100.0030.00615.36
7.0.90.0100.00615.35
7.0.80.0070.00715.43
7.0.70.0060.00615.17
7.0.60.0050.03517.72
7.0.50.0030.02516.46
7.0.40.0040.03216.86
7.0.30.0210.03816.84
7.0.20.0220.03116.78
7.0.10.0080.04616.81
7.0.00.0080.03716.58
5.6.400.0030.01014.35
5.6.390.0140.00014.20
5.6.380.0040.00814.33
5.6.370.0000.01414.50
5.6.360.0060.00614.28
5.6.350.0060.01314.50
5.6.340.0000.00914.13
5.6.330.0100.00714.30
5.6.320.0100.00314.55
5.6.310.0070.00714.66
5.6.300.0060.00914.18
5.6.290.0030.00914.52
5.6.280.0030.02117.68
5.6.270.0070.00714.11
5.6.260.0070.00314.23
5.6.250.0070.00714.03
5.6.240.0090.00914.34
5.6.230.0100.00714.45
5.6.220.0030.01014.41
5.6.210.0070.02317.34
5.6.200.0040.05116.26
5.6.190.0080.03617.41
5.6.180.0120.03417.38
5.6.170.0150.03517.34
5.6.160.0080.04317.41
5.6.150.0050.03716.26
5.6.140.0050.04816.29
5.6.130.0070.02116.22
5.6.120.0100.02217.62
5.6.110.0100.03917.55
5.6.100.0070.05017.69
5.6.90.0080.03817.47
5.6.80.0080.04117.35
5.6.70.0070.00714.04
5.6.60.0000.01114.23
5.6.50.0060.01014.22
5.6.40.0040.00814.17
5.6.30.0040.00814.28
5.6.20.0110.00414.02
5.6.10.0090.00914.25
5.6.00.0040.00814.31
5.5.380.0110.00314.36
5.5.370.0050.01314.09
5.5.360.0040.01113.93
5.5.350.2100.02817.31
5.5.340.0090.03116.14
5.5.330.0070.02417.36
5.5.320.0130.02717.32
5.5.310.0230.03817.32
5.5.300.0070.02715.94
5.5.290.0070.04615.98
5.5.280.0040.02317.53
5.5.270.0070.04517.64
5.5.260.0080.02817.41
5.5.250.0080.02117.28
5.5.240.0160.03617.21
5.5.230.0060.00614.06
5.5.220.0110.00414.08
5.5.210.0060.01014.27
5.5.200.0070.00414.17
5.5.190.0000.01114.10
5.5.180.0080.00514.32
5.5.170.0070.01014.36
5.5.160.0040.00414.24
5.5.150.0040.00813.78
5.5.140.0000.00814.34
5.5.130.0060.00614.02
5.5.120.0040.00814.15
5.5.110.0080.00313.84
5.5.100.0000.01214.16
5.5.90.0030.00713.94
5.5.80.0000.01614.12
5.5.70.0000.01314.15
5.5.60.0030.00814.12
5.5.50.0090.00314.14
5.5.40.0030.00613.88
5.5.30.0060.00914.35
5.5.20.0100.00013.96
5.5.10.0000.00814.19
5.5.00.0030.01014.18

preferences:
45.51 ms | 400 KiB | 5 Q