verhauen
to beat up
To hit or beat someone physically. This expression is colloquial.
Er drohte damit, ihn nach der Schule zu verhauen.
He threatened to beat him up after school.

to beat up / to mess up
Loading your saved state.
to beat up
To hit or beat someone physically. This expression is colloquial.
Er drohte damit, ihn nach der Schule zu verhauen.
He threatened to beat him up after school.

'Verhauen' is an inseparable verb. The prefix 'ver-' remains firmly attached to the verb 'hauen' in all tenses and sentence types and is never placed at the end of the sentence.
Er hat die Prüfung leider verhauen.
Unfortunately, he messed up the exam.
All meanings of 'verhauen' are colloquial. In formal or written contexts, you should generally avoid the word.
Sag deinem Chef nicht, dass du die Präsentation „verhauen“ hast.
Don't tell your boss that you 'messed up' the presentation.
You can recognize the meaning from the object or the reflexive pronoun: if the object is a person, it is about hitting. If the object is a thing (exam, assignment), it is about failing or messing something up. If the verb is reflexive ('sich verhauen'), it is about a slip of the tongue or a typo.
Die Bande hat ihn nach der Schule verhauen. (schlagen)
The gang beat him up after school. (hit)
In the meaning 'to do something badly', the verb is often combined with exams, assignments, or performances: 'eine Prüfung verhauen' (to mess up an exam), 'ein Interview verhauen' (to mess up an interview), 'einen Vortrag verhauen' (to mess up a talk/presentation).
Ich habe Angst, dass ich das Vorstellungsgespräch verhaue.
I'm afraid I'll mess up the job interview.
When you misspeak or make a typo, the verb is always reflexive. It is often expanded with the preposition 'bei' and the dative to indicate where the mistake occurred.
Ich habe mich beim Rechnen um 10 Euro verhauen.
I made a mistake of 10 euros when doing the calculation.
to pass / consist / exist
'bestehen' and 'verhauen' are clear opposites when talking about exams or assignments. 'bestehen' means that you are successful and got enough things right. 'verhauen' means colloquially that you did an exam, assignment, or piece of work badly or did not manage it. 'bestehen' is neutral and also fits official situations. 'verhauen' sounds casual and more spoken; you would not use it in a formal letter.

Ich habe den Mathetest total verhauen, weil ich zu wenig gelernt hatte.
I totally messed up the math test because I had not studied enough.
Lena hat die praktische Prüfung beim ersten Versuch bestanden.
Lena passed the practical exam on her first attempt.