3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'topa' => array( 'seconda' => array( 'thirda' => 'thirda value', 'thirdb' => 'thirdb value' ), 'secondb' => array( 'thirdaa' => 'thirdaa value', 'thirdbb' => 'thirdbb value' ) ), 'topb' => 'topbbb' ); foreach($arr as $foo => $bar){ foreach($bar as $bartz => $barvalue){ foreach($barvalue as $tt => $toto) echo $foo.' '.$bartz.' ' .$tt . ' ' .$toto<br>'; } }

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)
5.6.80.0170.07020.50
5.5.240.0130.06320.12
5.4.400.3530.04019.00
5.4.390.3400.03019.32
5.4.380.3070.03719.22
5.4.370.3630.04019.00
5.4.360.3370.03718.87
5.4.350.3070.03719.10
5.4.340.3170.03718.87
5.4.320.3300.04019.00
5.4.310.3930.03018.88
5.4.300.3470.04018.99
5.4.290.3730.03719.24
5.4.280.3100.04019.13
5.4.270.3070.03718.98
5.4.260.3370.04019.31
5.4.250.3370.03019.12
5.4.240.3200.03719.14
5.4.230.3930.03718.97
5.4.220.4270.04319.24
5.4.210.4130.03719.05
5.4.200.4000.03719.23
5.4.190.4030.03719.13
5.4.180.3530.04719.08
5.4.170.3630.05018.83
5.4.160.4130.03719.04
5.4.150.3830.04319.21
5.4.140.3470.03016.36
5.4.130.3730.04016.51
5.4.120.3230.03316.41
5.4.110.3530.04016.20
5.4.100.3130.03716.37
5.4.90.3300.03316.55
5.4.80.3170.03316.46
5.4.70.3300.03016.39
5.4.60.3130.03016.43
5.4.50.3030.03716.56
5.4.40.3470.04716.25
5.4.30.3170.03316.50
5.4.20.3470.03316.32
5.4.10.2900.03716.34
5.4.00.2900.03015.78
5.3.290.3770.04714.77
5.3.280.3170.03314.64
5.3.270.3270.02714.62
5.3.260.2830.04014.45
5.3.250.3070.04014.59
5.3.240.3630.03314.70
5.3.230.3700.04314.69
5.3.220.3500.03714.42
5.3.210.3630.04314.62
5.3.200.4030.04014.43
5.3.190.4370.04014.43
5.3.180.4300.03714.43
5.3.170.3900.03314.42
5.3.160.4330.03014.43
5.3.150.3870.04314.41
5.3.140.4000.03314.42
5.3.130.3730.04314.49
5.3.120.3800.03714.64
5.3.110.4070.03714.50
5.3.100.3700.04313.98
5.3.90.3930.03313.88
5.3.80.3770.04313.98
5.3.70.3330.03713.97
5.3.60.2970.04013.88
5.3.50.3700.04013.90
5.3.40.3300.03313.88
5.3.30.3300.03713.88
5.3.20.3530.03713.88
5.3.10.3400.04313.88
5.3.00.3330.03313.88
5.2.170.3270.03313.88
5.2.160.3530.02713.88
5.2.150.3370.03313.88
5.2.140.3700.03013.88
5.2.130.3500.03313.88
5.2.120.2530.03013.88
5.2.110.3600.03713.88
5.2.100.3500.02313.88
5.2.90.3370.03013.88
5.2.80.3330.03013.88
5.2.70.3430.02713.88
5.2.60.3370.03013.88
5.2.50.3570.02713.88
5.2.40.2770.03013.88
5.2.30.2570.03013.88
5.2.20.2430.02713.88
5.2.10.2430.03013.88
5.2.00.2230.03313.88
5.1.60.2330.03013.88
5.1.50.2000.02313.88
5.1.40.2400.02313.88
5.1.30.2630.03013.88
5.1.20.2370.03013.88
5.1.10.2200.02313.88
5.1.00.2630.03013.88
5.0.50.1330.02313.88
5.0.40.1130.01713.88
5.0.30.1200.03713.88
5.0.20.1430.01713.89
5.0.10.1170.02013.89
5.0.00.1070.03013.90
4.4.90.1000.01713.90
4.4.80.1030.01713.91
4.4.70.1300.02013.91
4.4.60.1230.01013.91
4.4.50.1230.01313.91
4.4.40.1230.02313.91
4.4.30.1430.01313.91
4.4.20.1400.01713.91
4.4.10.1370.01313.91
4.4.00.1130.02313.91
4.3.110.1070.01313.91
4.3.100.1230.01713.91
4.3.90.1030.01313.91
4.3.80.1030.02313.91
4.3.70.1230.01313.91
4.3.60.1270.01713.91
4.3.50.1030.01313.91
4.3.40.1200.02013.91
4.3.30.0630.01713.91
4.3.20.0630.02313.91
4.3.10.0630.01713.91
4.3.00.0500.01713.91

preferences:
141.2 ms | 1394 KiB | 7 Q