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]['filename'];
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.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>/some/path/to/a/file.jpg
Output for hhvm-3.10.0

Process exited with code 153.