If I were not to use my iPhone 4s for a few years, would it still work?

I'm currently using a perfectly working Nokia. All of my favourite songs are on it. It's not the type of phone you would see on a teenager, as it's really old, but I just changed phones last month. I don't want to let a perfectly good phone go to waste just because I got a cool iPhone. So I've decided to use the Nokia phone. So… If I left my iPhone for a few years without using it, would it still work?

It would still work. Just keep it in a safe place.

It should be fine, you just need to make sure nothing happens to it (ex. Dropping it, leaving it in the sun, getting it wet). Hopefully in a few years, it gets used lol.

I think it would still work

The battery would deteriorate after a year or 2 but the phone itself would be fine.

I think it would work, but you might have problems with the battery after not using it for a long period of time. Also after about a year you probably won't get any updates and won't be able to download apps because the 4S is kinda getting old and might not be supported soon.