This question already has an answer here:
- Build a polyglot for Hello World 8 answers
Your program must print "hello world" when executed
Your program must be interpretable or compilable into 2 or more languages
Your program must require no input or arguments
Languages with identical syntax are too easy, and will be shunned. We all know you can write
echo hello worldin Bash and Batch, so let's make it more interesting.
I'll add my example as an answer.