You use a pan like this, called an egg poacher. (
Amazon)
Put water in the bottom and bring it to a boil, then melt a little butter in each cup.
Add an egg to each, and cook to desired doneness. (Roughly 8 mins for above, but check.)
When done, remove cup carefully (hot!) and flip onto buttered toast.