How do you get to world 7 on Super Mario Bros?

There is only one way to do that, and that is to beat the world 5 boss when you are tiny. You can defeat him by body slamming, as jumping on him normally will do nothing.