I was wondering if using
foreach(get_some_array() as $boo) do_something...
is slower than
$arr = get_some_array();
foreach($arr as $boo) do_something...
I mean would get_some_array() be called like 10000000 times if the array would have so many elements (in the 1st example) ?