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 RecursiveArrayIterator(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.40.0120.00318.64
8.3.30.0120.00919.10
8.3.20.0080.00020.29
8.3.10.0040.00423.68
8.3.00.0070.00317.46
8.2.170.0140.00019.09
8.2.160.0120.00322.96
8.2.150.0060.00325.66
8.2.140.0000.00824.66
8.2.130.0110.00426.16
8.2.120.0040.00422.25
8.2.110.0050.00522.26
8.2.100.0080.00317.91
8.2.90.0040.00419.26
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0000.00818.01
8.2.20.0000.00717.80
8.2.10.0000.00717.69
8.2.00.0080.00017.74
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00423.73
8.1.230.0080.00419.07
8.1.220.0000.00917.78
8.1.210.0080.00018.77
8.1.200.0040.00517.35
8.1.190.0050.00317.51
8.1.180.0000.00818.10
8.1.170.0000.01118.50
8.1.160.0040.00422.00
8.1.150.0050.00318.51
8.1.140.0040.00417.40
8.1.130.0000.00717.88
8.1.120.0000.00717.33
8.1.110.0030.00517.30
8.1.100.0030.00617.42
8.1.90.0030.00317.38
8.1.80.0000.00717.32
8.1.70.0000.00717.36
8.1.60.0030.00517.56
8.1.50.0000.00917.42
8.1.40.0030.00617.42
8.1.30.0090.00017.55
8.1.20.0040.00417.60
8.1.10.0000.00817.46
8.1.00.0080.00017.53
8.0.300.0000.00718.77
8.0.290.0000.00717.18
8.0.280.0050.00518.32
8.0.270.0040.00417.19
8.0.260.0070.00016.74
8.0.250.0030.00316.95
8.0.240.0070.00016.95
8.0.230.0030.00616.91
8.0.220.0000.00716.79
8.0.210.0050.00216.75
8.0.200.0060.00016.94
8.0.190.0060.00316.80
8.0.180.0030.00316.87
8.0.170.0060.00316.88
8.0.160.0000.00716.79
8.0.150.0050.00316.77
8.0.140.0040.00416.70
8.0.130.0070.00013.30
8.0.120.0080.00016.70
8.0.110.0050.00316.83
8.0.100.0030.00516.71
8.0.90.0000.00716.75
8.0.80.0060.00916.87
8.0.70.0040.00416.80
8.0.60.0040.00316.79
8.0.50.0000.00716.84
8.0.30.0110.00816.98
8.0.20.0120.00817.40
8.0.10.0000.00816.78
8.0.00.0110.00616.75
7.4.330.0050.00015.03
7.4.320.0030.00316.51
7.4.300.0000.00616.55
7.4.290.0030.00516.55
7.4.280.0000.00616.44
7.4.270.0050.00316.53
7.4.260.0030.00516.48
7.4.250.0000.00716.48
7.4.240.0000.00816.46
7.4.230.0030.00316.49
7.4.220.0080.01116.41
7.4.210.0040.01116.47
7.4.200.0000.00816.43
7.4.190.0000.00716.54
7.4.160.0130.01016.51
7.4.150.0120.00617.40
7.4.140.0110.00617.86
7.4.130.0060.01016.57
7.4.120.0080.01116.51
7.4.110.0100.00716.41
7.4.100.0130.00416.42
7.4.90.0140.00616.52
7.4.80.0070.01019.39
7.4.70.0180.00616.47
7.4.60.0040.01216.40
7.4.50.0050.00016.37
7.4.40.0110.00422.77
7.4.30.0060.00916.32
7.4.00.0040.01114.49
7.3.330.0060.00013.01
7.3.320.0000.00713.18
7.3.310.0040.00416.23
7.3.300.0000.00716.00
7.3.290.0090.00616.20
7.3.280.0060.01016.18
7.3.270.0250.00317.40
7.3.260.0140.00416.30
7.3.250.0160.00216.30
7.3.240.0120.00616.03
7.3.230.0090.01216.39
7.3.210.0100.00716.23
7.3.200.0180.00519.39
7.3.190.0040.01816.28
7.3.180.0110.00616.44
7.3.170.0080.01216.42
7.3.160.0100.01016.36
7.3.120.0070.01014.75
7.2.330.0080.01116.70
7.2.320.0120.00616.55
7.2.310.0130.00616.48
7.2.300.0170.00016.75
7.2.290.0040.01516.80
7.2.60.0100.01016.86
7.2.00.0060.01019.37
7.1.200.0130.00315.84
7.1.100.0340.00817.76
7.1.70.0030.00617.03
7.1.60.0080.00417.18
7.1.50.0140.00716.84
7.1.00.0000.07722.42
7.0.200.0070.01016.81
7.0.140.0030.07021.95
7.0.100.0470.04019.87
7.0.90.0470.08319.89
7.0.80.0400.07319.87
7.0.70.0300.05019.91
7.0.60.0430.08019.92
7.0.50.0330.08320.28
7.0.40.0030.09020.07
7.0.30.0000.04720.01
7.0.20.0030.06020.00
7.0.10.0070.07320.13
7.0.00.0030.09320.05
5.6.280.0030.07320.92
5.6.250.0100.08720.62
5.6.240.0000.06720.66
5.6.230.0100.08020.68
5.6.220.0200.06320.52
5.6.210.0100.08020.64
5.6.200.0000.06321.02
5.6.190.0200.06021.00
5.6.180.0000.07321.09
5.6.170.0000.09020.89
5.6.160.0030.05721.07
5.6.150.0100.08320.92
5.6.140.0070.05321.00
5.6.130.0100.06720.97
5.6.120.0100.08021.00
5.6.110.0200.07020.90
5.6.100.0170.06721.06
5.6.90.0130.07021.08
5.6.80.0070.07020.32
5.6.70.0100.06320.36
5.6.60.0070.08720.36
5.6.50.0070.07720.45
5.6.40.0070.08320.50
5.6.30.0030.05320.28
5.6.20.0070.08020.43
5.6.10.0000.05320.48
5.6.00.0070.05320.40
5.5.380.0070.05020.32
5.5.370.0130.07720.33
5.5.360.0130.07020.40
5.5.350.0130.07720.35
5.5.340.0130.07720.85
5.5.330.0000.09020.89
5.5.320.0170.04020.61
5.5.310.0130.07720.82
5.5.300.0130.08020.73
5.5.290.0070.05020.88
5.5.280.0130.07320.80
5.5.270.0070.05320.88
5.5.260.0070.08320.69
5.5.250.0070.08020.53
5.5.240.0130.06020.23
5.5.230.0170.03720.17
5.5.220.0130.04720.23
5.5.210.0030.07720.23
5.5.200.0070.08020.24
5.5.190.0100.06720.14
5.5.180.0070.07719.95
5.5.160.0070.08020.11
5.5.150.0070.08320.04
5.5.140.0100.07719.95
5.5.130.0100.08020.18
5.5.120.0070.07320.13
5.5.110.0030.05720.21
5.5.100.0070.07020.03
5.5.90.0070.07720.00
5.5.80.0000.08020.08
5.5.70.0070.08020.02
5.5.60.0030.09019.92
5.5.50.0170.03320.12
5.5.40.0070.08020.11
5.5.30.0030.06720.08
5.5.20.0100.07019.95
5.5.10.0130.06019.99
5.5.00.0130.07719.91
5.4.450.0130.07019.51
5.4.440.0070.08319.37
5.4.430.0070.04719.55
5.4.420.0030.07719.20
5.4.410.0030.04719.41
5.4.400.0070.07319.03
5.4.390.0100.07019.04
5.4.380.0000.08319.05
5.4.370.0070.04319.04
5.4.360.0100.06719.23
5.4.350.0170.06319.21
5.4.340.0070.08318.95
5.4.320.0030.05019.18
5.4.310.0000.08319.03
5.4.300.0070.07018.90
5.4.290.0070.07319.06
5.4.280.0100.05319.03
5.4.270.0100.06719.23
5.4.260.0030.07318.87
5.4.250.0070.07719.14
5.4.240.0030.07719.18
5.4.230.0030.04719.13
5.4.220.0200.07019.04
5.4.210.0100.07018.87
5.4.200.0030.06719.17
5.4.190.0100.06319.08
5.4.180.0100.07719.17
5.4.170.0070.07319.05
5.4.160.0070.06019.10
5.4.150.0030.06719.00
5.4.140.0000.04316.29
5.4.130.0070.06316.38
5.4.120.0070.07316.14
5.4.110.0070.06716.45
5.4.100.0070.07316.27
5.4.90.0100.06716.36
5.4.80.0100.03716.41
5.4.70.0130.04716.32
5.4.60.0030.08016.49
5.4.50.0030.07016.32
5.4.40.0030.07316.50
5.4.30.0100.07016.29
5.4.20.0070.07316.36
5.4.10.0000.07716.32
5.4.00.0030.06715.87
5.3.290.0030.04314.79
5.3.280.0100.04314.61
5.3.270.0100.06314.75
5.3.260.0070.07314.75
5.3.250.0130.04014.59
5.3.240.0070.07714.57
5.3.230.0100.06714.66
5.3.220.0100.07014.69
5.3.210.0100.06314.56
5.3.200.0030.06014.56
5.3.190.0030.07014.50
5.3.180.0170.06714.60
5.3.170.0000.07014.60
5.3.160.0070.07314.71
5.3.150.0100.05314.50
5.3.140.0070.07014.61
5.3.130.0070.07714.64
5.3.120.0100.07314.48
5.3.110.0130.03714.57
5.3.100.0130.07013.99
5.3.90.0030.04314.04
5.3.80.0070.04714.09
5.3.70.0030.05314.02
5.3.60.0000.04714.07
5.3.50.0030.06014.07
5.3.40.0170.05314.06
5.3.30.0000.07714.01
5.3.20.0030.04313.63
5.3.10.0030.07713.75
5.3.00.0030.06013.71
5.2.170.0030.06711.27
5.2.160.0030.06011.18
5.2.150.0170.05711.01
5.2.140.0030.06311.25
5.2.130.0070.06011.17
5.2.120.0130.05711.23
5.2.110.0130.05011.18
5.2.100.0030.04711.25
5.2.90.0030.05311.10
5.2.80.0100.05311.22
5.2.70.0030.04011.22
5.2.60.0000.03711.07
5.2.50.0030.05011.08
5.2.40.0070.05710.86
5.2.30.0030.06011.09
5.2.20.0170.04010.82
5.2.10.0070.05710.77
5.2.00.0030.06010.75
5.1.60.0100.0309.89
5.1.50.0030.0509.84
5.1.40.0030.03310.04
5.1.30.0030.04010.36
5.1.20.0000.04010.48
5.1.10.0030.0539.96
5.1.00.0070.0439.96
5.0.50.0030.0478.59
5.0.40.0000.0508.50
5.0.30.0030.0638.07
5.0.20.0000.0478.30
5.0.10.0030.0438.26
5.0.00.0000.0708.25
4.4.90.0030.0377.16
4.4.80.0000.0337.16
4.4.70.0130.0077.16
4.4.60.0100.0307.16
4.4.50.0030.0337.16
4.4.40.0030.0307.16
4.4.30.0000.0307.16
4.4.20.0070.0307.16
4.4.10.0030.0377.16
4.4.00.0000.0577.16
4.3.110.0000.0407.16
4.3.100.0000.0377.16
4.3.90.0030.0337.16
4.3.80.0000.0537.16
4.3.70.0030.0337.16
4.3.60.0070.0137.16
4.3.50.0030.0307.16
4.3.40.0000.0537.16
4.3.30.0030.0337.16
4.3.20.0000.0377.16
4.3.10.0000.0237.16
4.3.00.0000.0177.16

preferences:
47.16 ms | 400 KiB | 5 Q