Phytic acid-derivative transition metal phosphides encapsulated in N,P-codoped carbon: an efficient and durable hydrogen evolution electrocatalyst in a wide pH range.