It's used to express that something is extremely funny, to the point where you can't control your laughter.