It's discontinued, but you can still purchase the device (for fairly low price too!). On top of that, based on Apple's track record for software support, you can expect support for at least another year, if not more. Note that the iPhone 5S, a phone released in 2013 on iOS7, received the iOS12 update not too long ago.