It is a reaction used by Arabs to express shock when hearing something crazy.
It originates from snoring and is typed using 5 because it is the equivalent of the letter Ø® in the Arabic alphabet, which when repeated a couple of times might sound like you're snoring.
Hamza: I cracked the screen of the phone I just bought yesterday!!!
Yousef: 555