3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $multidim = array( 0 => array( 'width' => 444, 'height' => 555, 'name' => 'testname', ) ); $it = new \RecursiveIteratorIterator( new \RecursiveArrayIterator( $multidim ) ); while ( $it->valid( )) { echo $it->current(); $iit = $it->getInnerIterator(); var_dump($iit); $it->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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0130.00316.85
7.2.00.0060.00619.24
7.1.200.0100.00015.62
7.1.100.0040.00817.92
7.1.70.0060.00616.48
7.1.60.0070.01719.40
7.1.50.0100.01616.70
7.1.00.0000.03722.36
7.0.200.0020.00516.94
7.0.140.0000.07722.07
7.0.60.0030.05719.86
7.0.50.0070.08017.87
7.0.40.0130.08020.27
7.0.30.0300.07020.21
7.0.20.0400.06720.13
7.0.10.0100.05320.12
7.0.00.0030.08020.09
5.6.280.0030.07021.09
5.6.210.0070.08020.74
5.6.200.0100.03318.21
5.6.190.0030.07020.49
5.6.180.3370.04020.67
5.6.170.0270.05320.49
5.6.160.0130.08020.54
5.6.150.0070.04018.21
5.6.140.0070.05318.18
5.6.130.0070.08018.11
5.6.120.0130.07320.98
5.6.110.0070.04021.04
5.6.100.0070.08720.96
5.6.90.0070.08021.06
5.6.80.0130.06720.52
5.6.70.4370.04320.49
5.5.350.0030.08720.43
5.5.340.0070.08317.96
5.5.330.0070.07720.29
5.5.320.0330.07720.21
5.5.310.0270.07020.30
5.5.300.0030.05717.95
5.5.290.0100.03717.87
5.5.280.0030.08720.76
5.5.270.0070.07020.75
5.5.260.0200.07020.68
5.5.250.0100.09020.61
5.5.240.0300.07720.36
5.4.450.0230.04719.39
5.4.440.0300.05319.11
5.4.430.0230.04319.55
5.4.420.0230.08019.09
5.4.410.0430.06719.26
5.4.400.0300.07019.21
5.4.390.0300.04318.79
5.4.380.0330.06319.07
5.4.370.0270.07319.10
5.4.360.0330.05719.09
5.4.350.0400.06019.06
5.4.340.0300.03719.08
5.4.320.0270.05019.13
5.4.310.0300.06019.08
5.4.300.0300.07019.12
5.4.290.0170.04719.08
5.4.280.0470.04718.88
5.4.270.0300.03719.12
5.4.260.0370.04019.06
5.4.250.0300.04319.22
5.4.240.0700.03319.23
5.4.230.0400.04319.19
5.4.220.0200.05319.19
5.4.210.0230.04019.12
5.4.200.0330.05019.09
5.4.190.0300.04319.09
5.4.180.0270.05019.09
5.4.170.0300.07019.18
5.4.160.0330.06319.06
5.4.150.0270.04019.23
5.4.140.0470.05716.34
5.4.130.0230.04716.18
5.4.120.0370.06316.22
5.4.110.0300.07316.22
5.4.100.0330.05016.39
5.4.90.0330.06016.47
5.4.80.0370.02716.29
5.4.70.0370.04016.37
5.4.60.0230.06016.37
5.4.50.0130.04316.36
5.4.40.0070.04716.36
5.4.30.1430.05716.46
5.4.20.0400.05316.45
5.4.10.0430.05016.18
5.4.00.0370.04715.80
5.3.290.0330.07314.54
5.3.280.0270.05014.50
5.3.270.0330.07014.46
5.3.260.0270.07314.48
5.3.250.0230.03714.55
5.3.240.0300.04314.42
5.3.230.0270.05014.47
5.3.220.0230.05014.42
5.3.210.0330.07014.59
5.3.200.0430.06314.51
5.3.190.0400.05014.59
5.3.180.0270.05014.50
5.3.170.0300.07314.42
5.3.160.0370.06314.42
5.3.150.0330.07014.43
5.3.140.0070.04714.53
5.3.130.3100.03714.51
5.3.120.0630.03714.57
5.3.110.0400.06714.45
5.3.100.0270.04013.94
5.3.90.0270.05013.95
5.3.80.0300.03713.95
5.3.70.0270.04313.93
5.3.60.0270.03313.98
5.3.50.0300.03313.80
5.3.40.0370.02713.90
5.3.30.0270.04013.82
5.3.20.0200.04013.60
5.3.10.0300.03313.51
5.3.00.0200.04013.51
5.2.170.0230.02710.99
5.2.160.0270.02711.16
5.2.150.0330.02711.20
5.2.140.0130.03311.23
5.2.130.0230.02711.01
5.2.120.0300.02711.12
5.2.110.0130.03311.14
5.2.100.0200.04710.93
5.2.90.0200.02711.15
5.2.80.0200.03011.00
5.2.70.0230.02311.19
5.2.60.0200.02711.14
5.2.50.0170.03010.95
5.2.40.0170.02710.83
5.2.30.0170.03011.13
5.2.20.0170.02710.80
5.2.10.0170.02710.82
5.2.00.0230.02310.61
5.1.60.0100.02710.07
5.1.50.0170.0239.88
5.1.40.0130.03010.13
5.1.30.0100.03010.30
5.1.20.0200.02010.27
5.1.10.0130.0279.95
5.1.00.0130.0279.96
5.0.50.0100.0208.56
5.0.40.0100.0178.34
5.0.30.0100.0308.30
5.0.20.0070.0238.12
5.0.10.0130.0208.14
5.0.00.0100.0278.23
4.4.90.0070.0207.83
4.4.80.0070.0207.83
4.4.70.0070.0177.83
4.4.60.0100.0137.83
4.4.50.0070.0177.83
4.4.40.0070.0237.83
4.4.30.0100.0137.83
4.4.20.0100.0137.83
4.4.10.0100.0137.83
4.4.00.0070.0237.83
4.3.110.0100.0137.83
4.3.100.0030.0177.83
4.3.90.0100.0177.83
4.3.80.0030.0277.83
4.3.70.0100.0107.83
4.3.60.0030.0177.83
4.3.50.0070.0177.83
4.3.40.0070.0307.83
4.3.30.0030.0237.83
4.3.20.0070.0277.83
4.3.10.0070.0237.83
4.3.00.0100.0337.83