3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $upload = array(array( 'errors' => array(), 'filename' => '/some/path/to/a/file.jpg'), array( 'errors' => array(), 'filename' => '/yet/another/path.jpg')); var_dump($upload); foreach ($upload as $x) echo $x['filename'],"<br>"; echo $upload[0]['filenadme'];
Output for 5.3.0 - 7.1.0
array(2) { [0]=> array(2) { ["errors"]=> array(0) { } ["filename"]=> string(24) "/some/path/to/a/file.jpg" } [1]=> array(2) { ["errors"]=> array(0) { } ["filename"]=> string(21) "/yet/another/path.jpg" } } /some/path/to/a/file.jpg<br>/yet/another/path.jpg<br> Notice: Undefined index: filenadme in /in/HoGa9 on line 13
Output for 4.3.0 - 5.2.17
array(2) { [0]=> array(2) { ["errors"]=> array(0) { } ["filename"]=> string(24) "/some/path/to/a/file.jpg" } [1]=> array(2) { ["errors"]=> array(0) { } ["filename"]=> string(21) "/yet/another/path.jpg" } } /some/path/to/a/file.jpg<br>/yet/another/path.jpg<br> Notice: Undefined index: filenadme in /in/HoGa9 on line 13