Apple patches the newests version of iOS. Sometimes older versions get a security update here or there, maybe. So you'd have to be running the latest version of you want security fixes. Which isn't always possible due to compatibility or performance/stability.
If your iPhone is 3 or more years old you can forget any support from Apple whatsoever.