Just last month I finally moved on from my iPhone 6, which had been working great for 10 years, because some critical apps stopped working unless I upgraded, but couldn’t upgrade because apple no longer released iOS updates.
It needed a new battery, but held a charge on low power mode for 8 hours, and otherwise was perfectly fine.