3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 0 => [ 'attrb1' => 'test', 'attrb2' => 'test', ], 1 => [ 'attrb1' => 'test', 'attrb2' => 'test', ], ]; array_map(function($elem) { var_dump($elem); }, $array);
based on NjvRR
Output for 7.2.0 - 7.2.31, 7.3.0 - 7.3.19, 7.4.0 - 7.4.7, 8.0.0alpha1 - alpha2
array(2) { ["attrb1"]=> string(4) "test" ["attrb2"]=> string(4) "test" } array(2) { ["attrb1"]=> string(4) "test" ["attrb2"]=> string(4) "test" }