Is ios 7 compatible with the iPhone 4?

Yes, you can run iOS 7 on the iPhone 4.