3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("A","B","C"); $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($array)); while ( $iterator->valid() ) { echo $iterator->current() ; $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.4.10.0080.00819.53
8.3.140.0000.00816.54
8.3.130.0000.00818.22
8.3.120.0000.01018.63
8.3.110.0060.00320.94
8.3.100.0040.00416.62
8.3.90.0080.01126.77
8.3.80.0060.00317.97
8.3.70.0080.00816.58
8.3.60.0110.01116.38
8.3.50.0140.00617.31
8.3.40.0140.00318.70
8.3.30.0140.00018.73
8.3.20.0080.00018.60
8.3.10.0080.00020.48
8.3.00.0040.00419.23
8.2.260.0120.00617.04
8.2.250.0090.00016.77
8.2.240.0030.00616.95
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0110.00726.77
8.2.200.0070.00318.88
8.2.190.0140.00716.58
8.2.180.0170.00716.38
8.2.170.0070.00722.96
8.2.160.0030.01218.91
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00419.89
8.2.110.0090.00022.16
8.2.100.0040.00717.91
8.2.90.0040.00417.88
8.2.80.0000.00818.79
8.2.70.0040.00417.93
8.2.60.0030.00617.63
8.2.50.0060.00317.50
8.2.40.0000.00819.35
8.2.30.0030.00518.04
8.2.20.0000.00717.53
8.2.10.0000.00717.77
8.2.00.0090.00017.55
8.1.310.0140.00416.74
8.1.300.0060.00319.74
8.1.290.0030.00730.84
8.1.280.0120.00625.92
8.1.270.0070.00023.99
8.1.260.0090.00926.35
8.1.250.0080.00028.09
8.1.240.0100.00723.96
8.1.230.0040.00719.01
8.1.220.0040.00417.75
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0030.00717.23
8.1.180.0000.00818.10
8.1.170.0000.00917.62
8.1.160.0000.00718.76
8.1.150.0060.00318.63
8.1.140.0050.00217.39
8.1.130.0030.00317.75
8.1.120.0020.00517.31
8.1.110.0000.00717.38
8.1.100.0030.00317.39
8.1.90.0070.00017.39
8.1.80.0000.00717.36
8.1.70.0050.00317.39
8.1.60.0000.00817.49
8.1.50.0040.00417.39
8.1.40.0040.00417.47
8.1.30.0000.00717.58
8.1.20.0070.00317.48
8.1.10.0040.00417.52
8.1.00.0030.00517.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.41
8.0.270.0040.00417.16
8.0.260.0030.00316.73
8.0.250.0050.00216.95
8.0.240.0060.00316.82
8.0.230.0000.00716.77
8.0.220.0040.00416.77
8.0.210.0040.00416.69
8.0.200.0030.00316.81
8.0.190.0030.00416.86
8.0.180.0040.00416.83
8.0.170.0070.00016.84
8.0.160.0000.00716.82
8.0.150.0040.00416.79
8.0.140.0040.00416.69
8.0.130.0000.00513.28
8.0.120.0000.00716.77
8.0.110.0050.00316.86
8.0.100.0040.00416.64
8.0.90.0000.00716.83
8.0.80.0090.00616.82
8.0.70.0040.00416.82
8.0.60.0000.00816.88
8.0.50.0070.00016.73
8.0.30.0070.01017.09
8.0.20.0110.01317.05
8.0.10.0040.00416.88
8.0.00.0110.00716.79
7.4.330.0000.00512.94
7.4.320.0000.00716.34
7.4.300.0030.00316.39
7.4.290.0000.00716.55
7.4.280.0040.00416.53
7.4.270.0030.00316.36
7.4.260.0030.00313.24
7.4.250.0000.00816.56
7.4.240.0000.00716.48
7.4.230.0000.00716.55
7.4.220.0080.01116.57
7.4.210.0070.01116.52
7.4.200.0040.00416.63
7.4.190.0000.00716.70
7.4.160.0110.00716.48
7.4.150.0090.00916.67
7.4.140.0100.00616.38
7.4.130.0070.01116.46
7.4.120.0060.01116.40
7.4.110.0170.00716.41
7.4.100.0140.00316.61
7.4.90.0120.00616.41
7.4.80.0070.01016.37
7.4.70.0070.00716.27
7.4.60.0130.00316.45
7.4.50.0000.00516.29
7.4.40.0100.00616.17
7.4.30.0030.01316.49
7.4.00.0070.01014.79
7.3.330.0070.00012.93
7.3.320.0000.00513.03
7.3.310.0070.00016.20
7.3.300.0000.00616.16
7.3.290.0070.00016.13
7.3.280.0110.00516.13
7.3.270.0070.01016.39
7.3.260.0050.01416.37
7.3.250.0140.00616.21
7.3.240.0070.00916.24
7.3.230.0090.00916.31
7.3.210.0130.00616.17
7.3.200.0090.00919.39
7.3.190.0030.01516.25
7.3.180.0070.01016.41
7.3.170.0070.01116.20
7.3.160.0100.00616.37
7.3.120.0030.01314.96
7.2.330.0120.00616.42
7.2.320.0110.00616.35
7.2.310.0080.01316.28
7.2.300.0090.00916.52
7.2.290.0030.01316.38
7.2.60.0070.00716.82
7.2.00.0070.00719.30
7.1.200.0000.01415.56
7.1.100.0030.01018.09
7.1.70.0080.00017.09
7.1.60.0130.01019.40
7.1.50.0100.01016.54
7.1.00.0130.06022.40
7.0.200.0130.00314.95
7.0.140.0070.07022.18
7.0.120.0070.07022.12
7.0.60.0100.07719.99
7.0.50.0100.07717.85
7.0.40.0130.04019.96
7.0.30.0030.05320.13
7.0.20.0270.07720.16
7.0.10.0300.08020.16
7.0.00.0070.04320.18
5.6.280.0000.07721.07
5.6.210.0030.04320.72
5.6.200.0100.07318.18
5.6.190.0070.09020.76
5.6.180.0270.03720.45
5.6.170.0230.05720.62
5.6.160.0000.04720.44
5.6.150.0200.06318.10
5.6.140.0000.04718.07
5.6.130.0000.04318.18
5.6.120.0100.05721.12
5.6.110.0100.08021.00
5.6.100.0130.07021.11
5.6.90.0130.07721.12
5.6.80.0070.07720.35
5.6.70.3830.02720.41
5.5.350.0200.03320.46
5.5.340.0130.07317.89
5.5.330.0330.03720.46
5.5.320.0230.03720.15
5.5.310.0230.04020.52
5.5.300.0000.08317.97
5.5.290.0070.07317.95
5.5.280.0030.09020.64
5.5.270.0130.06020.79
5.5.260.0000.07020.86
5.5.250.0030.05320.57
5.5.240.0070.08720.23
5.4.450.0000.09019.41
5.4.440.0070.07319.25
5.4.430.0030.08319.23
5.4.420.0170.06719.47
5.4.410.0070.08319.27
5.4.400.0070.03718.79
5.4.390.0000.04318.79
5.4.380.0130.03319.14
5.4.370.0030.04019.12
5.4.360.0070.06718.91
5.4.350.0170.06018.92
5.4.340.0100.06319.15
5.4.320.0130.04019.18
5.4.310.0100.07718.91
5.4.300.0130.06719.08
5.4.290.0030.06719.18
5.4.280.0030.06319.13
5.4.270.0070.03319.15
5.4.260.0030.04018.78
5.4.250.0000.04318.91
5.4.240.0070.07019.07
5.4.230.0030.05718.91
5.4.220.0030.05719.17
5.4.210.0030.04019.14
5.4.200.0100.07719.17
5.4.190.0170.06719.17
5.4.180.0070.07318.79
5.4.170.0030.07319.16
5.4.160.0100.04318.78
5.4.150.0070.07318.77
5.4.140.0070.07016.38
5.4.130.0130.06316.21
5.4.120.0100.05316.27
5.4.110.0030.08016.14
5.4.100.0100.06016.25
5.4.90.0070.06716.14
5.4.80.0070.03716.39
5.4.70.0070.05716.38
5.4.60.0070.06716.41
5.4.50.0030.07016.43
5.4.40.0070.04316.27
5.4.30.0130.06316.34
5.4.20.0030.08016.27
5.4.10.0070.05316.38
5.4.00.0030.04315.79
5.3.290.0000.08014.58
5.3.280.0070.04714.52
5.3.270.0000.08314.53
5.3.260.0130.06314.57
5.3.250.0100.06714.54
5.3.240.0030.06314.43
5.3.230.0030.07314.54
5.3.220.0100.06014.66
5.3.210.0130.07314.50
5.3.200.0030.05314.39
5.3.190.0100.07314.55
5.3.180.0070.07014.65
5.3.170.0000.05014.53
5.3.160.0130.06014.38
5.3.150.0170.06314.46
5.3.140.0000.08014.53
5.3.130.0070.08014.47
5.3.120.0070.07714.46
5.3.110.0100.05714.49
5.3.100.0100.04714.05
5.3.90.0070.07713.99
5.3.80.0070.07313.85
5.3.70.0070.07713.95
5.3.60.0000.05013.82
5.3.50.0070.04714.04
5.3.40.0030.06013.73
5.3.30.0000.06713.75
5.3.20.0130.05013.63
5.3.10.0100.06013.67
5.3.00.0170.05313.60
5.2.170.0030.06711.30
5.2.160.0100.05711.08
5.2.150.0070.03011.09
5.2.140.0030.03011.13
5.2.130.0100.05711.25
5.2.120.0070.06011.18
5.2.110.0030.05711.09
5.2.100.0070.03011.04
5.2.90.0070.06011.04
5.2.80.0130.02711.25
5.2.70.0100.05311.08
5.2.60.0070.05710.86
5.2.50.0030.03311.09
5.2.40.0030.03310.83
5.2.30.0100.02710.85
5.2.20.0070.02710.85
5.2.10.0030.03710.76
5.2.00.0030.04010.70
5.1.60.0070.0439.96
5.1.50.0070.02310.01
5.1.40.0100.0209.97
5.1.30.0030.04710.49
5.1.20.0070.05010.36
5.1.10.0000.05710.03
5.1.00.0070.03010.05
5.0.50.0070.0409.71
5.0.40.0000.0239.71
5.0.30.0030.0409.71
5.0.20.0070.0309.71
5.0.10.0000.0209.71
5.0.00.0000.0579.71
4.4.90.0000.0309.71
4.4.80.0030.0339.71
4.4.70.0030.0179.71
4.4.60.0000.0209.71
4.4.50.0130.0109.71
4.4.40.0030.0539.71
4.4.30.0000.0309.71
4.4.20.0030.0309.71
4.4.10.0030.0309.71
4.4.00.0070.0339.71
4.3.110.0000.0309.71
4.3.100.0070.0109.71
4.3.90.0030.0179.71
4.3.80.0100.0339.71
4.3.70.0030.0379.71
4.3.60.0000.0139.71
4.3.50.0030.0139.71
4.3.40.0000.0239.71
4.3.30.0000.0179.71
4.3.20.0000.0179.71
4.3.10.0030.0339.71
4.3.00.0000.0379.71

preferences:
28.12 ms | 403 KiB | 5 Q