Technically Hello World in PHP is just:<p>Hello World<p>The one they have with <?php print("Hello World"); ?> is also an opcode longer than using <?php echo "Hello World"; ?> because off the FREE on the return value from the print. But a file just containing the string: Hello World
and nothing else will generate the same opcodes as the echo version so they are equivalent and you might as well use the shorter form. A file without an opening <?php tag is still a perfectly valid PHP program.
While <i>Hello World</i> is nice, something a bit more involved could give you more insight. Among many people, Amit Singh (of MacFuse and Mac OS X Internals fame) did this with the <i>Towers of Hanoi</i>: <a href="http://www.kernelthread.com/projects/hanoi/" rel="nofollow">http://www.kernelthread.com/projects/hanoi/</a> (111 Hanoi implementations total).
The Rosetta Code is a much more interesting and useful site along the same lines.<p><a href="http://rosettacode.org/wiki/Rosetta_Code" rel="nofollow">http://rosettacode.org/wiki/Rosetta_Code</a>
Why is Morse code included? I'm not being flippant, but rather genuinely curious as to whether there's some basis for it being considered a "programming" language or precursor thereof.<p>This isn't to confuse Morse code with reMorse :
<a href="http://esolangs.org/wiki/ReMorse" rel="nofollow">http://esolangs.org/wiki/ReMorse</a>
This repo is out of date. There are 9 months old pull requests open. Here is a fork: <a href="https://github.com/c00kiemon5ter/hello-world" rel="nofollow">https://github.com/c00kiemon5ter/hello-world</a>
One page list, more languages: <a href="http://www.scriptol.com/programming/hello-world.php" rel="nofollow">http://www.scriptol.com/programming/hello-world.php</a> (and older)
I remember reading that the Malbolge author was 'working' on a Hello World program, and thought that was awesome. Now I see why:<p><a href="https://github.com/leachim6/hello-world/blob/master/m/malbolge.mbg" rel="nofollow">https://github.com/leachim6/hello-world/blob/master/m/malbol...</a><p>I wonder if it was written by hand; that would be impressive. Doesn't look like it would be too hard to hand roll a little compiler for it.
No love for intercal? <a href="http://en.wikipedia.org/wiki/INTERCAL" rel="nofollow">http://en.wikipedia.org/wiki/INTERCAL</a> Hmm. piet is missing too. <a href="http://www.retas.de/thomas/computer/programs/useless/piet/index.html" rel="nofollow">http://www.retas.de/thomas/computer/programs/useless/piet/in...</a>
I prefer the FizzBuzz examples as it also displays the simple looping constructs of the languages <a href="http://rosettacode.org/wiki/FizzBuzz" rel="nofollow">http://rosettacode.org/wiki/FizzBuzz</a><p>Edit: Grr it is missing one of my favorite JVM.next() languages of the week Kotlin, I will have to update it.
Largest collection "Hello world" in programming languages (441 at last count): <a href="http://www.roesler-ac.de/wolfram/hello.htm" rel="nofollow">http://www.roesler-ac.de/wolfram/hello.htm</a><p>It even has BCPL and LabVIEW!
well, certainly not every programming language.<p>i.e.: i'm one of the most senior ACT3 programmers worldwide. (well, there were only about a dozen or so people) it was a programming language used extensively at the national austria press agency. it was - at it's time (around 2001) - for more advanced as PHP 4. the hello world would have looked something like this<p><!--%'hello world'--><p>(the <!-- --> was a relict from ACT2 ...)<p>yes it was an abomination, but it worked, and it was fast.<p>ok, anyway, ARC is missing, too. I think the claim "every programming language" is a) wrong and b) not really feasible.
Hello world in PostScript:<p>/Times-Roman findfont 12 scalefont
newpath
200 200 moveto
(Hello World) show
closepath
Showpage<p>Use this in gs on Linux or y gswin32 on windows