what is the most recent iphone
The iPhone 4 is the most recent iPhone to be discontinued from the iOS Update cycle. It did not receive the iOS 8 update, so it's final software version is iOS 7.1.2. You can update to this version through iTunes, or download it from an IPSW repository like this website: https://ipsw.me/.