first of all this is really easy to do. this is fake. you obviously have a npc wand somewhere and your also in creative. show the npc wand please.
here is the npc
here is the wand
here is how to use the wand
place the npc in the hole then you get this
name the egg's Herobrine in the anvil and the zombie will be named herobrine, done, you have herobrine