Apple is well known for being generous in its operating system updates since we only had macOS. Because it controls the entire vertical (hardware, system and software), it can offer longer support for its products.
Speaking of iPhones, when it's released this year, the iOS 13 Support all models since the 6s / 6s Plus dual released in 2015.
The current record holder of iOS versions iPhone 5s, which was released in 2013 along verse 7 and received updates at iOS 12 in 2018.
Check out the chart compiled by Statista:
One of the latest badly hit models was the iPhone 5c, which only received four versions of iOS (from 7 to 10).
For people who have an iPhone XS, XS Max or XR released last year, it is expected that they will still receive updates until at least the iOS 16.
J in the Android world ?????
tip of Marcelo P.