I mean, even those old iPhones have better software support than a lot of low-end/budget Android phones. The iPhone 11 still has iOS 17 and will probably get security patches for another year or two (assuming it gets dropped with iOS 18, maybe Apple will try pushing it another year).