4 is definitely doable. More if you're in the apple ecosystem. iOS 15 (not yet releases) still supports the iPhone 6s which was originally released in 2015. I bought one last year as a testing device for work, and it's still a great phone (and much cheaper - £120 and had recently had it's battery replaced). On the android side you have to be more lucky, but my Samsung S7 (releases 2017) is still going strong and recieved a security update last month.