Is there really a point to hello world programs? For most languages it consists of basically just typing out the string "hello world".
echo "Hello World" > file.php && php file.php
Though you could still test that it's working in a webserver, since if it came from php rather than just the webserver, it would have some additional headers like X-Powered-By.
For most languages you're right, the into is one concept.