3v4l.org

run code in 200+ PHP versions simultaneously
<?php $displays = [ 'one' => [ 'filters' => ['a', 'b', 'c'], ], 'two' => [ 'filters' => ['d', 'e', 'f'], ], ]; foreach ($displays as &$display) { foreach ($display as $filters) {} } print_r($displays);
Output for 7.2.0 - 7.4.4
Array ( [one] => Array ( [filters] => Array ( [0] => a [1] => b [2] => c ) ) [two] => Array ( [filters] => Array ( [0] => d [1] => e [2] => f ) ) )