iphones (and ipads) do last 5 years or more, both hardware and software support; it's a key differentiator from the android ecosystem. A more easily replaced battery would be nice.
iPhones seem to have a 6 year lifespan for updates.
Only now has my battery health flagged up as needing a service.