I have an iPhone 11 and it has been holding up well. Before the iPhone 11, I think I had an iPhone 6S that stopped functioning. I'll probably only upgrade when something goes wrong with this one or they stop pushing updates for it.
I am currently using the iPhone 13. I have been using it for nearly three or four years. I am not sure. I do not have plans of upgrading anytime soon since it is still working perfectly fine and it is not practical.