3v4l.org

run code in 300+ PHP versions simultaneously
<?php $amountOfSubAltImages = 28; for($i = 0; $i < $amountOfSubAltImages; $i++) { $subImg_infoContainer[$i] = array(); } //Create the empty structure of the array template to fill with image data debug($subImg_infoContainer); for($i = 0; $i < $amountOfSubAltImages; $i++) { //0 = IMG_URL //1 = WIDTH //2 = HEIGHT //3 = ALT //4 = FIGCAP var_dump($subImg_infoContainer); $subImg_infoContainer[$i] = array(0 => $subImgUrls[$i], 1 => $subImgWidths[$i], 2 => $subImgHeights[$i], 3 => $subImgAltTxts[$i], 4 => $subImgFigCaps[$i]); }

preferences:
30.61 ms | 402 KiB | 5 Q