3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array( array( array( 'leaf-0-0-0-0' => array ( 'whawtever' ), 'leaf-0-0-0-1' ), 'leaf-0-0-0' ), array( array( 'leaf-0-1-0-0', 'leaf-0-1-0-1' ), 'leaf-0-1-0' ), 'leaf-0-0' ) ); $iterator = new RecursiveIteratorIterator( new RecursiveArrayIterator($array), '' ); foreach ($iterator as $key => $leaf) { echo "$key => $leaf", PHP_EOL; }

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.00416.38
8.3.50.0140.00221.08
8.3.40.0150.00018.69
8.3.30.0000.01518.71
8.3.20.0090.00920.33
8.3.10.0050.00323.61
8.3.00.0030.00619.53
8.2.180.0060.00918.38
8.2.170.0140.00022.96
8.2.160.0140.00020.52
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00417.50
8.2.110.0040.00721.08
8.2.100.0120.00017.63
8.2.90.0070.00019.09
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0030.00517.80
8.2.50.0000.00818.07
8.2.40.0000.00821.01
8.2.30.0050.00219.77
8.2.20.0040.00417.71
8.2.10.0040.00418.11
8.2.00.0000.00717.92
8.1.280.0070.01125.92
8.1.270.0030.00520.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.10
8.1.230.0060.00617.42
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00717.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0060.00318.57
8.1.160.0030.00621.89
8.1.150.0020.00518.76
8.1.140.0030.00517.27
8.1.130.0000.00717.30
8.1.120.0050.00517.44
8.1.110.0040.00417.32
8.1.100.0060.00317.43
8.1.90.0050.00317.30
8.1.80.0040.00417.42
8.1.70.0000.00717.36
8.1.60.0040.00417.50
8.1.50.0030.00517.53
8.1.40.0000.00917.50
8.1.30.0040.00417.72
8.1.20.0000.00817.59
8.1.10.0040.00417.59
8.1.00.0050.00217.51
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.36
8.0.270.0000.00717.13
8.0.260.0000.00716.87
8.0.250.0040.00416.96
8.0.240.0000.00716.85
8.0.230.0040.00416.96
8.0.220.0070.00016.89
8.0.210.0030.00516.91
8.0.200.0030.00316.90
8.0.190.0040.00816.96
8.0.180.0070.00316.80
8.0.170.0050.00316.81
8.0.160.0040.00416.96
8.0.150.0040.00316.84
8.0.140.0000.00716.89
8.0.130.0000.00513.21
8.0.120.0030.00616.94
8.0.110.0040.00416.95
8.0.100.0050.00317.00
8.0.90.0000.00816.84
8.0.80.0070.01316.90
8.0.70.0000.00716.90
8.0.60.0080.00016.76
8.0.50.0040.00416.91
8.0.30.0090.00716.88
8.0.20.0140.00317.40
8.0.10.0040.00417.08
8.0.00.0120.00716.94
7.4.330.0070.00015.08
7.4.320.0000.00616.58
7.4.300.0030.00316.62
7.4.290.0030.00316.48
7.4.280.0020.00716.41
7.4.270.0060.00016.65
7.4.260.0030.00316.58
7.4.250.0000.00716.59
7.4.240.0020.00516.59
7.4.230.0040.00416.39
7.4.220.0160.00916.55
7.4.210.0000.01416.70
7.4.200.0030.00316.59
7.4.160.0030.01216.65
7.4.150.0080.01217.40
7.4.140.0110.00617.86
7.4.130.0110.00716.60
7.4.120.0110.00816.44
7.4.110.0040.01516.65
7.4.100.0150.00316.51
7.4.90.0060.01016.58
7.4.80.0130.01319.39
7.4.70.0040.01516.55
7.4.60.0130.00316.62
7.4.50.0030.00616.46
7.4.40.0120.00616.55
7.4.30.0090.00916.44
7.4.00.0070.00714.78
7.3.330.0050.00013.20
7.3.320.0060.00013.00
7.3.310.0070.00016.20
7.3.300.0040.00416.22
7.3.290.0060.00716.28
7.3.280.0120.00416.29
7.3.270.0100.01417.40
7.3.260.0100.01316.29
7.3.250.0110.00716.40
7.3.240.0130.00716.29
7.3.230.0100.00716.47
7.3.210.0060.00916.38
7.3.200.0130.00416.39
7.3.190.0150.00316.39
7.3.180.0130.00916.18
7.3.170.0100.00616.46
7.3.160.0110.00716.45
7.3.120.0110.00715.03
7.3.110.0030.01414.75
7.3.100.0090.00914.97
7.3.90.0070.01114.84
7.3.80.0080.00814.81
7.3.70.0060.00614.60
7.3.60.0090.00914.65
7.3.50.0100.00714.91
7.3.40.0070.01014.77
7.3.30.0030.00914.72
7.3.20.0070.00716.64
7.3.10.0030.00916.34
7.3.00.0030.01216.57
7.2.330.0090.01216.37
7.2.320.0110.00716.43
7.2.310.0100.00716.51
7.2.300.0030.01316.60
7.2.290.0040.01316.73
7.2.250.0100.01015.01
7.2.240.0070.01315.24
7.2.230.0070.01314.91
7.2.220.0000.01814.83
7.2.210.0130.00615.11
7.2.200.0030.00714.87
7.2.190.0000.01215.00
7.2.180.0040.01114.81
7.2.170.0100.00014.88
7.2.60.0000.01416.88
7.2.00.0030.00719.51
7.1.330.0060.00915.73
7.1.320.0060.01215.61
7.1.310.0090.00615.48
7.1.300.0030.01015.55
7.1.290.0100.00315.72
7.1.280.0000.01015.55
7.1.270.0000.01615.56
7.1.260.0060.01015.87
7.1.200.0130.00015.53
7.1.100.0060.00617.86
7.1.70.0030.00617.09
7.1.60.0060.01819.13
7.1.50.0270.00334.79
7.1.00.0100.07022.42
7.0.200.0060.00616.47
7.0.110.0170.07719.98
7.0.100.0170.06720.00
7.0.90.0130.04719.93
7.0.80.0100.08019.96
7.0.70.0100.07719.86
7.0.60.0070.08720.07
7.0.50.0070.07720.02
7.0.40.0070.07019.66
7.0.30.0030.05019.83
7.0.20.0070.08319.77
7.0.10.0030.04719.82
7.0.00.0070.08319.78
5.6.280.0030.06320.91
5.6.260.0070.08320.63
5.6.250.0170.05720.68
5.6.240.0100.06720.63
5.6.230.0070.05720.69
5.6.220.0130.07720.69
5.6.210.0070.08320.60
5.6.200.0130.03320.85
5.6.190.0100.08020.85
5.6.180.0070.04720.85
5.6.170.0100.08020.63
5.6.160.0100.04320.45
5.6.150.0070.08020.66
5.6.140.0130.07720.55
5.6.130.0130.07320.58
5.6.120.0070.08020.64
5.6.110.0070.08320.57
5.6.100.0100.06720.64
5.6.90.0030.07720.44
5.6.80.0170.07020.00
5.6.70.0070.07319.99
5.6.60.0200.06319.84
5.6.50.0170.07020.00
5.6.40.0100.07720.04
5.6.30.0030.04719.91
5.6.20.0100.04019.95
5.6.10.0070.07719.94
5.6.00.0100.07719.96
5.5.380.0100.06717.57
5.5.370.0030.06717.70
5.5.360.0030.05017.53
5.5.350.0030.08317.49
5.5.340.0070.08018.22
5.5.330.0130.06717.95
5.5.320.0030.07717.91
5.5.310.0030.07317.95
5.5.300.0130.06017.93
5.5.290.0100.07717.93
5.5.280.0100.04717.95
5.5.270.0200.07017.95
5.5.260.0070.08017.96
5.5.250.0070.08717.72
5.5.240.0030.05317.31
5.5.230.0130.04017.51
5.5.220.0030.04717.60
5.5.210.0100.07017.20
5.5.200.0070.05017.45
5.5.190.0130.07017.47
5.5.180.0100.08017.18
5.5.160.0100.05317.60
5.5.150.0170.06717.39
5.5.140.0070.07317.47
5.5.130.0130.07317.41
5.5.120.0000.07017.39
5.5.110.0100.07317.57
5.5.100.0000.08017.48
5.5.90.0030.04717.20
5.5.80.0030.03717.29
5.5.70.0070.04017.15
5.5.60.0100.07017.30
5.5.50.0070.07317.33
5.5.40.0000.04017.16
5.5.30.0070.05017.16
5.5.20.0100.07317.16
5.5.10.0030.05317.45
5.5.00.0100.06017.18
5.4.450.0030.08319.66
5.4.440.0070.08019.27
5.4.430.0070.04719.35
5.4.420.0070.07719.50
5.4.410.0070.07719.53
5.4.400.0030.05719.18
5.4.390.0130.06319.09
5.4.380.0030.08318.93
5.4.370.0030.03719.23
5.4.360.0100.08019.01
5.4.350.0000.08319.14
5.4.340.0100.06319.33
5.4.320.0030.08018.98
5.4.310.0230.05019.33
5.4.300.0070.06319.00
5.4.290.0100.07019.08
5.4.280.0030.07719.16
5.4.270.0070.07019.02
5.4.260.0030.07319.02
5.4.250.0070.07319.17
5.4.240.0130.06719.00
5.4.230.0170.06318.99
5.4.220.0130.05319.21
5.4.210.0070.03319.17
5.4.200.0030.07718.96
5.4.190.0000.08019.01
5.4.180.0130.06719.15
5.4.170.0030.03319.15
5.4.160.0170.04019.29
5.4.150.0000.03719.01
5.4.140.0030.04016.35
5.4.130.0030.03316.39
5.4.120.0070.03716.46
5.4.110.0070.03716.50
5.4.100.0070.03316.48
5.4.90.0030.03716.59
5.4.80.0030.03316.55
5.4.70.0000.03716.55
5.4.60.0000.03716.53
5.4.50.0000.03716.23
5.4.40.0000.04716.68
5.4.30.0030.03016.55
5.4.20.0030.05716.28
5.4.10.0030.03716.52
5.4.00.0070.03015.87

preferences:
56.82 ms | 401 KiB | 5 Q