3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DebugRII extends RecursiveIteratorIterator { public function beginChildren() { echo __METHOD__, "\n"; } public function beginIteration() { echo __METHOD__, "\n"; } public function callGetChildren() { echo __METHOD__, "\n"; } public function callHasChildren() { echo __METHOD__, "\n"; } public function endChildren() { echo __METHOD__, "\n"; } public function endIteration() { echo __METHOD__, "\n"; } } $array = array("A","B","C"); $iterator = new DebugRII(new RecursiveArrayIterator($array)); while ($iterator->valid()) { echo $iterator->current(), "\n"; $iterator->next(); }

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.0140.00718.43
8.3.50.0120.00821.97
8.3.40.0080.00818.48
8.3.30.0140.00019.06
8.3.20.0040.00420.34
8.3.10.0000.00821.92
8.3.00.0070.00322.37
8.2.180.0070.00716.75
8.2.170.0070.00722.96
8.2.160.0140.00021.00
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0070.01022.27
8.2.100.0080.00417.78
8.2.90.0000.00819.24
8.2.80.0000.00818.04
8.2.70.0040.00417.63
8.2.60.0080.00017.80
8.2.50.0030.00718.07
8.2.40.0050.00318.34
8.2.30.0070.00018.04
8.2.20.0020.00517.67
8.2.10.0000.00817.68
8.2.00.0060.00317.66
8.1.280.0110.01125.92
8.1.270.0030.00521.93
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00024.02
8.1.230.0040.00719.09
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0030.00617.25
8.1.190.0000.00817.41
8.1.180.0000.00818.10
8.1.170.0040.00718.59
8.1.160.0040.00421.93
8.1.150.0040.00418.59
8.1.140.0070.00417.38
8.1.130.0070.00017.90
8.1.120.0080.00017.32
8.1.110.0030.00517.29
8.1.100.0030.00317.30
8.1.90.0040.00417.38
8.1.80.0050.00217.35
8.1.70.0030.00317.30
8.1.60.0090.00017.48
8.1.50.0040.00417.51
8.1.40.0000.00717.46
8.1.30.0000.00817.61
8.1.20.0040.00417.57
8.1.10.0000.00817.62
8.1.00.0000.00717.54
8.0.300.0050.00218.77
8.0.290.0000.00817.05
8.0.280.0000.00818.50
8.0.270.0070.00017.33
8.0.260.0000.00716.74
8.0.250.0070.00016.99
8.0.240.0050.00217.00
8.0.230.0030.00316.87
8.0.220.0000.00716.89
8.0.210.0030.00316.82
8.0.200.0000.00616.94
8.0.190.0000.00716.92
8.0.180.0030.00716.89
8.0.170.0000.00816.91
8.0.160.0000.00716.81
8.0.150.0000.00716.67
8.0.140.0000.00716.69
8.0.130.0050.00013.20
8.0.120.0040.00416.76
8.0.110.0040.00416.83
8.0.100.0040.00316.63
8.0.90.0070.00016.78
8.0.80.0000.01816.75
8.0.70.0000.00716.70
8.0.60.0030.00316.82
8.0.50.0000.00816.89
8.0.30.0070.01317.10
8.0.20.0030.01517.40
8.0.10.0070.00016.95
8.0.00.0120.00716.80
7.4.330.0000.00515.00
7.4.320.0060.00016.47
7.4.300.0060.00016.60
7.4.290.0030.00516.53
7.4.280.0050.00216.52
7.4.270.0030.00316.57
7.4.260.0000.00816.51
7.4.250.0030.00316.50
7.4.240.0020.00516.53
7.4.230.0070.00016.68
7.4.220.0120.01216.62
7.4.210.0090.00816.50
7.4.200.0050.00216.45
7.4.190.0030.00316.70
7.4.160.0090.00616.56
7.4.150.0130.00317.40
7.4.140.0100.00817.86
7.4.130.0130.00616.51
7.4.120.0100.01016.43
7.4.110.0090.00916.44
7.4.100.0100.00716.63
7.4.90.0120.00616.50
7.4.80.0140.00419.39
7.4.70.0060.01316.43
7.4.60.0060.01116.40
7.4.50.0040.00416.71
7.4.40.0050.00922.77
7.4.30.0110.00516.57
7.4.00.0100.00714.95
7.3.330.0000.00513.20
7.3.320.0000.00513.25
7.3.310.0000.00716.21
7.3.300.0000.00616.14
7.3.290.0060.01216.24
7.3.280.0100.00616.23
7.3.270.0030.01517.40
7.3.260.0050.01116.22
7.3.250.0120.00916.35
7.3.240.0120.01216.53
7.3.230.0100.00716.39
7.3.210.0090.01216.49
7.3.200.0040.01519.39
7.3.190.0090.00916.44
7.3.180.0100.00616.23
7.3.170.0060.00916.27
7.3.160.0130.00316.28
7.3.120.0070.01014.76
7.3.00.0060.00616.55
7.2.330.0080.00916.63
7.2.320.0040.01516.73
7.2.310.0150.00716.45
7.2.300.0080.00816.33
7.2.290.0060.00916.46
7.2.130.0000.01516.60
7.2.120.0070.00716.78
7.2.110.0070.01116.39
7.2.100.0070.00716.65
7.2.90.0070.00716.73
7.2.80.0000.01416.58
7.2.70.0110.00416.69
7.2.60.0020.01016.63
7.2.50.0040.00716.89
7.2.40.0040.00816.87
7.2.30.0060.00916.67
7.2.20.0080.00816.89
7.2.10.0030.01316.80
7.2.00.0090.00718.08
7.1.250.0140.00015.63
7.1.240.0060.00615.47
7.1.230.0080.00415.23
7.1.220.0090.00615.51
7.1.210.0090.00615.41
7.1.200.0050.00915.63
7.1.190.0090.00315.54
7.1.180.0080.00315.83
7.1.170.0030.00715.52
7.1.160.0080.00415.69
7.1.150.0100.00015.61
7.1.140.0030.00915.57
7.1.130.0000.01315.75
7.1.120.0100.00515.43
7.1.110.0100.00315.88
7.1.100.0020.00916.84
7.1.90.0060.00615.73
7.1.80.0110.00015.54
7.1.70.0040.01116.31
7.1.60.0050.01117.73
7.1.50.0130.00516.36
7.1.40.0070.00315.41
7.1.30.0040.00715.83
7.1.20.0080.00015.73
7.1.10.0030.00915.71
7.1.00.0050.04119.12
7.0.330.0000.01415.44
7.0.320.0060.00614.94
7.0.310.0070.00715.48
7.0.300.0040.00715.36
7.0.290.0090.00315.25
7.0.280.0040.01115.34
7.0.270.0070.00715.36
7.0.260.0000.01515.11
7.0.250.0070.00415.14
7.0.240.0090.00615.16
7.0.230.0040.00715.11
7.0.220.0030.01015.51
7.0.210.0060.00315.41
7.0.200.0070.00516.02
7.0.190.0100.00015.30
7.0.180.0070.00315.43
7.0.170.0100.00315.51
7.0.160.0060.00315.16
7.0.150.0060.00315.37
7.0.140.0050.04018.77
7.0.130.0050.00515.13
7.0.120.0060.00315.52
7.0.110.0090.00315.33
7.0.100.0070.02217.63
7.0.90.0080.02817.64
7.0.80.0080.02617.71
7.0.70.0070.02317.59
7.0.60.0030.02517.63
7.0.50.0120.02517.77
7.0.40.0090.02116.72
7.0.30.0080.03316.73
7.0.20.0050.03716.80
7.0.10.0050.02816.84
7.0.00.0050.04316.73
5.6.380.0040.01114.04
5.6.370.0040.00914.12
5.6.360.0120.00314.41
5.6.350.0050.01114.48
5.6.340.0080.00814.22
5.6.330.0030.01314.48
5.6.320.0070.00314.57
5.6.310.0090.00014.35
5.6.300.0000.01114.34
5.6.290.0000.01414.29
5.6.280.0060.03617.65
5.6.270.0040.00714.18
5.6.260.0000.01014.29
5.6.250.0100.01917.46
5.6.240.0070.02817.38
5.6.230.0020.02817.46
5.6.220.0020.03117.57
5.6.210.0080.02117.47
5.6.200.0030.02517.63
5.6.190.0070.02317.74
5.6.180.0030.02817.63
5.6.170.0060.02317.66
5.6.160.0090.04217.57
5.6.150.0040.02017.85
5.6.140.0050.03517.70
5.6.130.0030.02917.69
5.6.120.0030.02317.60
5.6.110.0130.03317.75
5.6.100.0050.02917.70
5.6.90.0020.02717.52
5.6.80.0060.02017.21
5.6.70.0050.02217.28
5.6.60.0100.03017.29
5.6.50.0070.02317.33
5.6.40.0030.02517.15
5.6.30.0050.02317.15
5.6.20.0030.04017.15
5.6.10.0080.03117.29
5.6.00.0010.02617.29
5.5.380.0030.02315.78
5.5.370.0020.02515.94
5.5.360.0070.01815.78
5.5.350.0040.02315.87
5.5.340.0060.02016.02
5.5.330.0020.02616.12
5.5.320.0060.02816.14
5.5.310.0060.04015.96
5.5.300.0050.01816.08
5.5.290.0050.04216.15
5.5.280.0070.02816.00
5.5.270.0030.02816.04
5.5.260.0050.04016.09
5.5.250.0080.01715.73
5.5.240.0010.02615.63
5.5.230.0060.03115.67
5.5.220.0030.02515.71
5.5.210.0020.03515.80
5.5.200.0060.01815.67
5.5.190.0120.01415.73
5.5.180.0060.02215.51
5.5.170.0030.00311.23
5.5.160.0030.02715.57
5.5.150.0070.02815.54
5.5.140.0080.02315.74
5.5.130.0020.02515.58
5.5.120.0060.02315.68
5.5.110.0070.04015.78
5.5.100.0000.04115.71
5.5.90.0040.02415.63
5.5.80.0050.03015.59
5.5.70.0050.03415.67
5.5.60.0050.02315.66
5.5.50.0050.02215.58
5.5.40.0050.03215.67
5.5.30.0050.02615.61
5.5.20.0070.01715.47
5.5.10.0070.03615.63
5.5.00.0080.02815.57
5.4.450.0060.03315.28
5.4.440.0050.04015.28
5.4.430.0060.02015.14
5.4.420.0050.02015.23
5.4.410.0000.04615.04
5.4.400.0030.02114.95
5.4.390.0050.02114.95
5.4.380.0120.03714.96
5.4.370.0050.02015.08
5.4.360.0020.03414.99
5.4.350.0060.03314.94
5.4.340.0030.03215.05
5.4.330.0000.01111.00
5.4.320.0050.04515.08
5.4.310.0060.03015.18
5.4.300.0080.01915.13
5.4.290.0050.02915.02
5.4.280.0030.02414.94
5.4.270.0060.01815.07
5.4.260.0030.04315.11
5.4.250.0080.02814.92
5.4.240.0070.03714.95
5.4.230.0000.02515.09
5.4.220.0030.03015.04
5.4.210.0050.02015.12
5.4.200.0030.04315.11
5.4.190.0020.02715.01
5.4.180.0020.04215.01
5.4.170.0030.01915.04
5.4.160.0040.03415.01
5.4.150.0020.03015.07
5.4.140.0080.03213.72
5.4.130.0090.01713.74
5.4.120.0030.02413.85
5.4.110.0020.02513.85
5.4.100.0000.02113.74
5.4.90.0020.02113.80
5.4.80.0060.01613.68
5.4.70.0070.01713.79
5.4.60.0100.02313.72
5.4.50.0030.01813.73
5.4.40.0010.02413.78
5.4.30.0030.03013.71
5.4.20.0050.03413.74
5.4.10.0060.02613.73
5.4.00.0030.02313.36
5.3.290.0050.03012.83
5.3.280.0050.03212.79
5.3.270.0060.04112.80
5.3.260.0070.03712.80
5.3.250.0020.04212.80
5.3.240.0050.02912.80
5.3.230.0060.02112.86
5.3.220.0020.02712.81
5.3.210.0080.01612.82
5.3.200.0040.03012.84
5.3.190.0020.02012.79
5.3.180.0070.01812.80
5.3.170.0000.02112.81
5.3.160.0030.01812.83
5.3.150.0080.01512.75
5.3.140.0000.02512.79
5.3.130.0030.03512.85
5.3.120.0050.03312.76
5.3.110.0030.02012.77
5.3.100.0020.03012.52
5.3.90.0050.04012.52
5.3.80.0000.03912.59
5.3.70.0030.02312.55
5.3.60.0020.02312.47
5.3.50.0030.02012.43
5.3.40.0000.02712.53
5.3.30.0080.01612.43
5.3.20.0050.03312.40
5.3.10.0070.02312.29
5.3.00.0010.02812.35
5.2.170.0050.02311.29
5.2.160.0030.01611.29
5.2.150.0030.02711.29
5.2.140.0020.02911.29
5.2.130.0050.03211.29
5.2.120.0050.02011.29
5.2.110.0020.01511.29
5.2.100.0070.02511.29
5.2.90.0020.02211.29
5.2.80.0030.03511.29
5.2.70.0070.01211.29
5.2.60.0060.01811.29
5.2.50.0030.01711.29
5.2.40.0030.02211.29
5.2.30.0040.01811.29
5.2.20.0020.02511.29
5.2.10.0030.01711.29
5.2.00.0000.01811.29
5.1.60.0030.02111.29
5.1.50.0050.00811.29
5.1.40.0050.01111.29
5.1.30.0020.01511.29
5.1.20.0060.02011.29
5.1.10.0040.02211.29
5.1.00.0040.02211.29
5.0.50.0000.01311.29
5.0.40.0000.01611.29
5.0.30.0000.02111.29
5.0.20.0020.01211.29
5.0.10.0040.01211.29
5.0.00.0030.01511.29
4.4.90.0000.01511.29
4.4.80.0000.01111.29
4.4.70.0030.01011.29
4.4.60.0020.01011.29
4.4.50.0030.00811.29
4.4.40.0030.01211.29
4.4.30.0050.01211.29
4.4.20.0030.01611.29
4.4.10.0020.01011.29
4.4.00.0020.01511.29
4.3.110.0000.00911.29
4.3.100.0030.01211.29
4.3.90.0000.01111.29
4.3.80.0030.01011.29
4.3.70.0040.01011.29
4.3.60.0030.01711.29
4.3.50.0070.01411.29
4.3.40.0020.01211.29
4.3.30.0020.01011.29
4.3.20.0030.00611.29
4.3.10.0020.00811.29
4.3.00.0000.01511.29

preferences:
41.14 ms | 401 KiB | 5 Q