Nope it is not a bad habit nor slower.
However, when using PHP templating, try to avoid printing several variables at once, to keep things straight.
I'd make it this way:
hey, <?=$foo?> <?=$bar?>?
But it's still matter of style as there are no other reasons to prefer one over another
A note. It's a pity to see numerous answers from not-so-experienced participants, who speaking not from their own real life experience but just repeat some durable rumor, one after another.
Also, I'd say that the question itself has very poor reasoning. If you asks what is slower - you asks wrong question. For the most questions such difference just doesn't matter and just waste of time. Performance tuning is a process, not some "mysterious knowledge". One have to learn how to profile their app and get some basic experience to ask sensible performance related questions. Otherwise there will be no any good.