Was just wondering as this might screw up with someone if they are short on money, have mortgage, etc.
In EU, there is some minimum notice time (I think two weeks?). In practice (from what I've seen) it's usually two to three months, but layoffs would be done immediately by agreement (basically pay for that period anyway). Minimum severance is one-month-pay (average, so bonuses included) for each year worked, limited to three.
So in real life, one would get 5-6 months pay when being laid off. Depending on the situation (reason for the lay off), one might not be able to spend their vacation and that would have to be paid off as well. On top of that you might apply for unemployment benefit (which you paid for, so I'm not sure how relevant it is).