I drove 1800 miles in a Hydrogen Car

How much energy is needed to produce hydrogen and has anyone done a comprehensive long-term carbon footprint of this type of vehicle. Energy cannot be created or destroyed only changed from one form to another, is the hydrogen cell technology actually better than fossil fuel or merely different?.