You'll get a syntax error on T_STRING if you have that
(getting error here)
in the code. Otherwise, there is no syntactical error.
You will get a E_NOTICE on accessing $_POST['username'] if it doesn't exist. That will only exist if you posted from a form, so you should check it first:
printf('Welcome back %s', $_POST['username']);