3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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]); }
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function debug() in /in/MgsXq:13 Stack trace: #0 {main} thrown in /in/MgsXq on line 13
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
Fatal error: Call to undefined function debug() in /in/MgsXq on line 13
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: debug() in /in/MgsXq on line 13
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: debug() in /in/MgsXq on line 13
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: debug() in /in/MgsXq on line 13