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]; } } }
Output for 4.3.0 - 7.1.0
result[0][0][0] = 0result[0][0][1] = 0result[0][0][2] = 0result[0][0][3] = 0result[0][0][4] = 0result[0][0][5] = 0result[0][1][0] = 0result[0][1][1] = 0result[0][1][2] = 0result[0][1][3] = 0result[0][1][4] = 0result[0][1][5] = 0result[0][2][0] = 0result[0][2][1] = 0result[0][2][2] = 0result[0][2][3] = 0result[0][2][4] = 0result[0][2][5] = 0result[0][3][0] = 0result[0][3][1] = 0result[0][3][2] = 0result[0][3][3] = 0result[0][3][4] = 0result[0][3][5] = 0result[0][4][0] = 0result[0][4][1] = 0result[0][4][2] = 0result[0][4][3] = 0result[0][4][4] = 0result[0][4][5] = 0result[0][5][0] = 0result[0][5][1] = 0result[0][5][2] = 0result[0][5][3] = 0result[0][5][4] = 0result[0][5][5] = 0result[1][0][0] = 0result[1][0][1] = 0result[1][0][2] = 0result[1][0][3] = 0result[1][0][4] = 0result[1][0][5] = 0result[1][1][0] = 0result[1][1][1] = 1result[1][1][2] = 2result[1][1][3] = 3result[1][1][4] = 4result[1][1][5] = 5result[1][2][0] = 0result[1][2][1] = 2result[1][2][2] = 4result[1][2][3] = 6result[1][2][4] = 8result[1][2][5] = 10result[1][3][0] = 0result[1][3][1] = 3result[1][3][2] = 6result[1][3][3] = 9result[1][3][4] = 12result[1][3][5] = 15result[1][4][0] = 0result[1][4][1] = 4result[1][4][2] = 8result[1][4][3] = 12result[1][4][4] = 16result[1][4][5] = 20result[1][5][0] = 0result[1][5][1] = 5result[1][5][2] = 10result[1][5][3] = 15result[1][5][4] = 20result[1][5][5] = 25result[2][0][0] = 0result[2][0][1] = 0result[2][0][2] = 0result[2][0][3] = 0result[2][0][4] = 0result[2][0][5] = 0result[2][1][0] = 0result[2][1][1] = 2result[2][1][2] = 4result[2][1][3] = 6result[2][1][4] = 8result[2][1][5] = 10result[2][2][0] = 0result[2][2][1] = 4result[2][2][2] = 8result[2][2][3] = 12result[2][2][4] = 16result[2][2][5] = 20result[2][3][0] = 0result[2][3][1] = 6result[2][3][2] = 12result[2][3][3] = 18result[2][3][4] = 24result[2][3][5] = 30result[2][4][0] = 0result[2][4][1] = 8result[2][4][2] = 16result[2][4][3] = 24result[2][4][4] = 32result[2][4][5] = 40result[2][5][0] = 0result[2][5][1] = 10result[2][5][2] = 20result[2][5][3] = 30result[2][5][4] = 40result[2][5][5] = 50result[3][0][0] = 0result[3][0][1] = 0result[3][0][2] = 0result[3][0][3] = 0result[3][0][4] = 0result[3][0][5] = 0result[3][1][0] = 0result[3][1][1] = 3result[3][1][2] = 6result[3][1][3] = 9result[3][1][4] = 12result[3][1][5] = 15result[3][2][0] = 0result[3][2][1] = 6result[3][2][2] = 12result[3][2][3] = 18result[3][2][4] = 24result[3][2][5] = 30result[3][3][0] = 0result[3][3][1] = 9result[3][3][2] = 18result[3][3][3] = 27result[3][3][4] = 36result[3][3][5] = 45result[3][4][0] = 0result[3][4][1] = 12result[3][4][2] = 24result[3][4][3] = 36result[3][4][4] = 48result[3][4][5] = 60result[3][5][0] = 0result[3][5][1] = 15result[3][5][2] = 30result[3][5][3] = 45result[3][5][4] = 60result[3][5][5] = 75result[4][0][0] = 0result[4][0][1] = 0result[4][0][2] = 0result[4][0][3] = 0result[4][0][4] = 0result[4][0][5] = 0result[4][1][0] = 0result[4][1][1] = 4result[4][1][2] = 8result[4][1][3] = 12result[4][1][4] = 16result[4][1][5] = 20result[4][2][0] = 0result[4][2][1] = 8result[4][2][2] = 16result[4][2][3] = 24result[4][2][4] = 32result[4][2][5] = 40result[4][3][0] = 0result[4][3][1] = 12result[4][3][2] = 24result[4][3][3] = 36result[4][3][4] = 48result[4][3][5] = 60result[4][4][0] = 0result[4][4][1] = 16result[4][4][2] = 32result[4][4][3] = 48result[4][4][4] = 64result[4][4][5] = 80result[4][5][0] = 0result[4][5][1] = 20result[4][5][2] = 40result[4][5][3] = 60result[4][5][4] = 80result[4][5][5] = 100result[5][0][0] = 0result[5][0][1] = 0result[5][0][2] = 0result[5][0][3] = 0result[5][0][4] = 0result[5][0][5] = 0result[5][1][0] = 0result[5][1][1] = 5result[5][1][2] = 10result[5][1][3] = 15result[5][1][4] = 20result[5][1][5] = 25result[5][2][0] = 0result[5][2][1] = 10result[5][2][2] = 20result[5][2][3] = 30result[5][2][4] = 40result[5][2][5] = 50result[5][3][0] = 0result[5][3][1] = 15result[5][3][2] = 30result[5][3][3] = 45result[5][3][4] = 60result[5][3][5] = 75result[5][4][0] = 0result[5][4][1] = 20result[5][4][2] = 40result[5][4][3] = 60result[5][4][4] = 80result[5][4][5] = 100result[5][5][0] = 0result[5][5][1] = 25result[5][5][2] = 50result[5][5][3] = 75result[5][5][4] = 100result[5][5][5] = 125