The oldest iPhones that Apple still gives updates to are the iPhone 8 and iPhone 8 Plus, both released in 2017. Anything older is considered discontinued and unsupported.