3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [ ['a', 'c', 'b'], ['f', 'd'], [] ]; foreach ($arrays as &$array) { } foreach ($arrays as $array) { print_r($array); }