如何阻止终端在与输出相同的行上启动

I'm currently starting to learn php off of Laracasts, and I have a very basic issue. My code is the following:

    <?php 
    echo 'Hello World';

In the video, this exact code outputs "Hello World", and then starts the terminal prompt on a new line.
He doesn't use /n or any other new line code
I wrote this same code on Sublime Text. When I run this in terminal, the echo'd "Hello World" displays, but it is on the same line as the next terminal prompt.
However, if I run the exact same code in a different text editor(I tried Visual Studio Code next) the "Hello World" displays, but the terminal prompt starts on a new line.
Wondering why this is happening in Sublime Text.

You want to specify a new line character/carriage return.

In PHP you need to use double quotes like this: echo "Hello World ";

more info on carriage returns here: , and what is the difference between them?

Windows and Linux both have their own interpretations, more information can be found in this informative post.