Apple devices are supported for 5 years and in some cases longer
The current software on Apple devices supports back to the 5S, so that is more than 5 years with iOS 12.
You may not get all the bells and whistles but it at least it works and has security updates (main reason was any device with less than 1GB ram)
For iOS 13 that supports back to the iPhone 6S (currently about 4 years old) and rumours will be supported in iOS 14 (again may not support all features but will have latest security updates)