Cans of soda will explode in a cold car if the temperature in the car gets cold enough.
If you leave sealed cans of soda in your car and the temperatures get below freezing the soda in the can will freeze and pressure will buildup on the can as the frozen soda expands.
As the pressure increases inside the can due to the frozen soda the frozen soda in the can will eventually burst and send soda all over your car.
I had this happen to me a few times when I left a can of soda in the car before and it get below freezing.
The next morning I went out and the top of the soda can was blown off and soda had gotten all over my dash and seats and even the ceiling part of my car.
It took some good cleaning to fully get the soda out.
Try to remember to take any sealed soda cans or other sealed cans inside during freezing weather.
Just like frozen pipes can burst when it gets cold, the frozen soda cans can also burst when frozen.
The soda expands when it freezes and the expansion can be forceful.
Soda also contains carbon dioxide, which is a gas and when the soda freezes, the pressure from the expanding water can force the gas to dissolve in the ice and increase the pressure within the soda can.
And cans are often strong enough to withstand some moderate pressure, but the force of the freezing soda expansion can overcome this, especially in really cold temperatures and cause it to burst.
Soda with sugar freezes at around 30 F and diet soda and water freeze at 32 F.