Java

public class HelloWorld {
  public static void main(String [] args) {
    System.out.println("Hello World!");
  }
}

Python

print "Hello World!"

JavaScript

console.log("Hello World!");

PHP

<?php echo("Hello World!"); ?>

Perl

#!/usr/bin/perl
print "Hello World!";

Other

Syntax highlighting is provided by highlisght.js. See their documentation for more info.