This is one of the things that keeps me with Apple. They're far from perfect in the reliability front, but they will keep supporting the software for much longer than I expect my phone to last. Looks like the oldest phone they still support is the 6s, and typically they support phones for a bit under 7 years after launch, and 5 after discontinuation.
Obviously they get slower and fewer features, but that's better than "Good luck LOL".
Obviously they get slower and fewer features, but that's better than "Good luck LOL".