3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(array('errors' => array(), 'path' => '/some/path/to/a/file.jpg'), array('errors' => array(), 'path' => '/yet/another/path.jpg')); var_dump($a); foreach ($a as $k => $v) echo $k, $v, "<br>";
Output for 5.4.0 - 7.1.0
array(2) { [0]=> array(2) { ["errors"]=> array(0) { } ["path"]=> string(24) "/some/path/to/a/file.jpg" } [1]=> array(2) { ["errors"]=> array(0) { } ["path"]=> string(21) "/yet/another/path.jpg" } } 0 Notice: Array to string conversion in /in/oGcRI on line 4 Array<br>1 Notice: Array to string conversion in /in/oGcRI on line 4 Array<br>
Output for 4.3.0 - 5.3.29
array(2) { [0]=> array(2) { ["errors"]=> array(0) { } ["path"]=> string(24) "/some/path/to/a/file.jpg" } [1]=> array(2) { ["errors"]=> array(0) { } ["path"]=> string(21) "/yet/another/path.jpg" } } 0Array<br>1Array<br>