The iPhone 4 cannot be updated beyond iOS 7, but the iPhone 4S supports iOS 9. It will be a bit slower, but if you turn off transparency and motion it works ok. You can update it through iTunes or the settings app. As it's the last update apple still signs it, but only on the iPhone 4S.