0 used to introduce something new, especially something that is different from what you have just said -- pero
1 except -- menos
Everyone but Andrew knows.
2 indicates sth opposite to or different from a thing already mentioned -- pero
4 emphasizes surprise or anger -- pero
“They got in through the door.” “But how?” Entraron por la puerta. “¿Pero cómo?”
5 except for -- salvo