Answer:
t's both a chemical change and a physical change.
Gasoline doesn't explode. In order for there to be an explosion, the combustion must happen in a sealed container. The gasoline combusts with oxygen in the atmosphere to form carbon dioxide, water vapor, nitrous oxides, and soot, along with a lot of heat. The liquid gasoline produces mostly vaporous products, and in a sealed container, will generate very high pressures.
The high pressure will cause the container to explode.