I used my iPhone 4S from 2011 till today. Battery is still fine according to coconutBattery. I am very glad I am not stuck on iOS 5, but that Apple supported it till iOS 9.3
As an aside: If your battery dies you don't have to buy a new smartphone, but just a replacement battery. On ebay it costs around 10 dollars with tools.