i saw it when i was 9...so in 2000 it is probaly older tho... what i remember tho

there was a boy and a witch at some point they were in a parade i think and there were fireworks and they were hiding on the floats and it had somewhat cheap 3D effects

at the end tho they were in like a time stream and were turning into babies and they had to dodge hammers so they could keep their memories and at the end they dodged all the hammers and the boy ended up in some barn and this couple found him and he peed lol

i hope someone can help me its driving me crazy