$str = sha1('any text');echo preg_replace("#(.{8})(.{4})(.{4})(.{4})(.*)#", "\\1-\\2-\\3-\\4-\\5", $str);
5d48d16e-1980-be64-d824-6b52be2aa9c03aa552a9