Hey from Hi and Other Colloquial Quirks

When, exactly, did “Hey!” replace “Hi!” as a standard greeting?

I think I’ve been using “Hey!” for “Hi!” for at least five years — but I’m not sure of the when or why.

Was there some sea change in a cultural colloquialism I missed?