I'm not sure how much energy it would take to make enough Hydrogen to run the engine, and if you'd get that energy back. I don't know what to expect, but my guess is that something about the process wouldn't work. However, don't let my pessimism stop you from trying. :-)