Types of Gasoline?

There are three different types of gasoline, which are 87, 89, and 92. Bigger cars run quite well on 87. Compact cars seem to do better running 89. High performance cars tend to do better with 92. And I thought gas was just gas!