too high compression?

I dont remember it doing this but its been OOS for a few years..
Dose it still have old gas in it? I had a Mazda 2.5l that would spark knock with regular but not with premium, also had more power with premium.