3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = $b = $c = array(); $a[2][3][4][5] = Array('amt' => 20, 'comm' => 10); $b[2][3] = Array('amt' => 30, 'comm' => 20); $c[2][3][4][6] = Array('amt' => 40, 'comm' => 30); $d[2][3][7] = Array('amt' => 50, 'comm' => 40);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0