Because arrays are always ordered, and the easiest and fastest way to iterate the array is just going from the first element to the last one (so there is no good reason to change the behavior for foreach()), you can be reasonably sure that this behavior will not change.