What's a good way to rewind?

If I want to process the state of the world in advance to find out what's going to happen based on certain actions, then reset it to its original state, what's the best way to do that?

Would I create a copy of the world and run all the simulations on that? Or should the solution be app-specific, knowing before hand what's going to change and save only that information to reset it later? Or are there any other ways of rewinding physics? If only it were as easy as passing in a negative dt...
oh jeez... yeah you might have to just clone the whole world
I was afraid of that... and there's nothing built in to do that, is there? I'd either have to modify the code or recreate the world based on its current state
I could try to make everything serializable, but that might explode.... I'll check it out

Original thread: https://box2d.org/forum/viewtopic.php?t=5243