unexpected ‘$mm’ (T_VARIABLE) in wp-includes/functions.php

The correct line number for this variable in the most recent WordPress version are 207 and 209. So I guess something has mangled your files.

It is impossible to answer what exactly happened without seeing that code.

Look for new user accounts, and re-upload all WordPress files from the source.

error code: 523