3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = Array(); for ($x = 0; $x < 6; $x++) { for ($y = 0; $y < 6; $y++) { for ($z = 0; $z < 6; $z++) { $result[$x][$y][$z] = $x * $y * $z; echo "result[{$x}][{$y}][{$z}] = " . $result[$x][$y][$z] . "\n"; } } }
Output for 4.3.0 - 7.1.0
result[0][0][0] = 0 result[0][0][1] = 0 result[0][0][2] = 0 result[0][0][3] = 0 result[0][0][4] = 0 result[0][0][5] = 0 result[0][1][0] = 0 result[0][1][1] = 0 result[0][1][2] = 0 result[0][1][3] = 0 result[0][1][4] = 0 result[0][1][5] = 0 result[0][2][0] = 0 result[0][2][1] = 0 result[0][2][2] = 0 result[0][2][3] = 0 result[0][2][4] = 0 result[0][2][5] = 0 result[0][3][0] = 0 result[0][3][1] = 0 result[0][3][2] = 0 result[0][3][3] = 0 result[0][3][4] = 0 result[0][3][5] = 0 result[0][4][0] = 0 result[0][4][1] = 0 result[0][4][2] = 0 result[0][4][3] = 0 result[0][4][4] = 0 result[0][4][5] = 0 result[0][5][0] = 0 result[0][5][1] = 0 result[0][5][2] = 0 result[0][5][3] = 0 result[0][5][4] = 0 result[0][5][5] = 0 result[1][0][0] = 0 result[1][0][1] = 0 result[1][0][2] = 0 result[1][0][3] = 0 result[1][0][4] = 0 result[1][0][5] = 0 result[1][1][0] = 0 result[1][1][1] = 1 result[1][1][2] = 2 result[1][1][3] = 3 result[1][1][4] = 4 result[1][1][5] = 5 result[1][2][0] = 0 result[1][2][1] = 2 result[1][2][2] = 4 result[1][2][3] = 6 result[1][2][4] = 8 result[1][2][5] = 10 result[1][3][0] = 0 result[1][3][1] = 3 result[1][3][2] = 6 result[1][3][3] = 9 result[1][3][4] = 12 result[1][3][5] = 15 result[1][4][0] = 0 result[1][4][1] = 4 result[1][4][2] = 8 result[1][4][3] = 12 result[1][4][4] = 16 result[1][4][5] = 20 result[1][5][0] = 0 result[1][5][1] = 5 result[1][5][2] = 10 result[1][5][3] = 15 result[1][5][4] = 20 result[1][5][5] = 25 result[2][0][0] = 0 result[2][0][1] = 0 result[2][0][2] = 0 result[2][0][3] = 0 result[2][0][4] = 0 result[2][0][5] = 0 result[2][1][0] = 0 result[2][1][1] = 2 result[2][1][2] = 4 result[2][1][3] = 6 result[2][1][4] = 8 result[2][1][5] = 10 result[2][2][0] = 0 result[2][2][1] = 4 result[2][2][2] = 8 result[2][2][3] = 12 result[2][2][4] = 16 result[2][2][5] = 20 result[2][3][0] = 0 result[2][3][1] = 6 result[2][3][2] = 12 result[2][3][3] = 18 result[2][3][4] = 24 result[2][3][5] = 30 result[2][4][0] = 0 result[2][4][1] = 8 result[2][4][2] = 16 result[2][4][3] = 24 result[2][4][4] = 32 result[2][4][5] = 40 result[2][5][0] = 0 result[2][5][1] = 10 result[2][5][2] = 20 result[2][5][3] = 30 result[2][5][4] = 40 result[2][5][5] = 50 result[3][0][0] = 0 result[3][0][1] = 0 result[3][0][2] = 0 result[3][0][3] = 0 result[3][0][4] = 0 result[3][0][5] = 0 result[3][1][0] = 0 result[3][1][1] = 3 result[3][1][2] = 6 result[3][1][3] = 9 result[3][1][4] = 12 result[3][1][5] = 15 result[3][2][0] = 0 result[3][2][1] = 6 result[3][2][2] = 12 result[3][2][3] = 18 result[3][2][4] = 24 result[3][2][5] = 30 result[3][3][0] = 0 result[3][3][1] = 9 result[3][3][2] = 18 result[3][3][3] = 27 result[3][3][4] = 36 result[3][3][5] = 45 result[3][4][0] = 0 result[3][4][1] = 12 result[3][4][2] = 24 result[3][4][3] = 36 result[3][4][4] = 48 result[3][4][5] = 60 result[3][5][0] = 0 result[3][5][1] = 15 result[3][5][2] = 30 result[3][5][3] = 45 result[3][5][4] = 60 result[3][5][5] = 75 result[4][0][0] = 0 result[4][0][1] = 0 result[4][0][2] = 0 result[4][0][3] = 0 result[4][0][4] = 0 result[4][0][5] = 0 result[4][1][0] = 0 result[4][1][1] = 4 result[4][1][2] = 8 result[4][1][3] = 12 result[4][1][4] = 16 result[4][1][5] = 20 result[4][2][0] = 0 result[4][2][1] = 8 result[4][2][2] = 16 result[4][2][3] = 24 result[4][2][4] = 32 result[4][2][5] = 40 result[4][3][0] = 0 result[4][3][1] = 12 result[4][3][2] = 24 result[4][3][3] = 36 result[4][3][4] = 48 result[4][3][5] = 60 result[4][4][0] = 0 result[4][4][1] = 16 result[4][4][2] = 32 result[4][4][3] = 48 result[4][4][4] = 64 result[4][4][5] = 80 result[4][5][0] = 0 result[4][5][1] = 20 result[4][5][2] = 40 result[4][5][3] = 60 result[4][5][4] = 80 result[4][5][5] = 100 result[5][0][0] = 0 result[5][0][1] = 0 result[5][0][2] = 0 result[5][0][3] = 0 result[5][0][4] = 0 result[5][0][5] = 0 result[5][1][0] = 0 result[5][1][1] = 5 result[5][1][2] = 10 result[5][1][3] = 15 result[5][1][4] = 20 result[5][1][5] = 25 result[5][2][0] = 0 result[5][2][1] = 10 result[5][2][2] = 20 result[5][2][3] = 30 result[5][2][4] = 40 result[5][2][5] = 50 result[5][3][0] = 0 result[5][3][1] = 15 result[5][3][2] = 30 result[5][3][3] = 45 result[5][3][4] = 60 result[5][3][5] = 75 result[5][4][0] = 0 result[5][4][1] = 20 result[5][4][2] = 40 result[5][4][3] = 60 result[5][4][4] = 80 result[5][4][5] = 100 result[5][5][0] = 0 result[5][5][1] = 25 result[5][5][2] = 50 result[5][5][3] = 75 result[5][5][4] = 100 result[5][5][5] = 125