The iPhone 6S (and the OG iPhone SE) still run iOS 15, so should be usable for maybe 2 more years. It was released in 2015, so could come close to 10 years of practical use. Note all iPhones fare equally well, but you should probably be able get 6+ years out of any model.