An Mn-doped NiCoP flower-like structure as a highly efficient electrocatalyst for hydrogen evolution reaction in acidic and alkaline solutions with long duration.