3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is a small script that shows how to use an multiple array for($x = 0;$x < 10;$x++){ for($y = 0;$y < 10;$y++){ $mat[$x][$y] = "$x,$y"; } } for($x = 0;$x < count($mat);$x++){ for($y = 0;$y < count($mat[$x]);$y++){ echo "mat[$x][$y]: " . $mat[$x][$y] . " "; } echo "\n"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
mat[0][0]: 0,0 mat[0][1]: 0,1 mat[0][2]: 0,2 mat[0][3]: 0,3 mat[0][4]: 0,4 mat[0][5]: 0,5 mat[0][6]: 0,6 mat[0][7]: 0,7 mat[0][8]: 0,8 mat[0][9]: 0,9 mat[1][0]: 1,0 mat[1][1]: 1,1 mat[1][2]: 1,2 mat[1][3]: 1,3 mat[1][4]: 1,4 mat[1][5]: 1,5 mat[1][6]: 1,6 mat[1][7]: 1,7 mat[1][8]: 1,8 mat[1][9]: 1,9 mat[2][0]: 2,0 mat[2][1]: 2,1 mat[2][2]: 2,2 mat[2][3]: 2,3 mat[2][4]: 2,4 mat[2][5]: 2,5 mat[2][6]: 2,6 mat[2][7]: 2,7 mat[2][8]: 2,8 mat[2][9]: 2,9 mat[3][0]: 3,0 mat[3][1]: 3,1 mat[3][2]: 3,2 mat[3][3]: 3,3 mat[3][4]: 3,4 mat[3][5]: 3,5 mat[3][6]: 3,6 mat[3][7]: 3,7 mat[3][8]: 3,8 mat[3][9]: 3,9 mat[4][0]: 4,0 mat[4][1]: 4,1 mat[4][2]: 4,2 mat[4][3]: 4,3 mat[4][4]: 4,4 mat[4][5]: 4,5 mat[4][6]: 4,6 mat[4][7]: 4,7 mat[4][8]: 4,8 mat[4][9]: 4,9 mat[5][0]: 5,0 mat[5][1]: 5,1 mat[5][2]: 5,2 mat[5][3]: 5,3 mat[5][4]: 5,4 mat[5][5]: 5,5 mat[5][6]: 5,6 mat[5][7]: 5,7 mat[5][8]: 5,8 mat[5][9]: 5,9 mat[6][0]: 6,0 mat[6][1]: 6,1 mat[6][2]: 6,2 mat[6][3]: 6,3 mat[6][4]: 6,4 mat[6][5]: 6,5 mat[6][6]: 6,6 mat[6][7]: 6,7 mat[6][8]: 6,8 mat[6][9]: 6,9 mat[7][0]: 7,0 mat[7][1]: 7,1 mat[7][2]: 7,2 mat[7][3]: 7,3 mat[7][4]: 7,4 mat[7][5]: 7,5 mat[7][6]: 7,6 mat[7][7]: 7,7 mat[7][8]: 7,8 mat[7][9]: 7,9 mat[8][0]: 8,0 mat[8][1]: 8,1 mat[8][2]: 8,2 mat[8][3]: 8,3 mat[8][4]: 8,4 mat[8][5]: 8,5 mat[8][6]: 8,6 mat[8][7]: 8,7 mat[8][8]: 8,8 mat[8][9]: 8,9 mat[9][0]: 9,0 mat[9][1]: 9,1 mat[9][2]: 9,2 mat[9][3]: 9,3 mat[9][4]: 9,4 mat[9][5]: 9,5 mat[9][6]: 9,6 mat[9][7]: 9,7 mat[9][8]: 9,8 mat[9][9]: 9,9

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
60.17 ms | 404 KiB | 8 Q