You can get a totally workable used iPhone cheap, because they keep working for so long.
It's not like you need a lot of horsepower for texting. My kids take a beat up 8-year-old iPhone 6 out when they go to sleepovers and things. It still works fine.