They are all correct and have the same meaning. In (1) and (3), "it" stands for the postponed subject "whether or not the operation was successful" or "whether the operation was successful or not". It may be called an "anticipatory it".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.