Puke, I am your Phava: code that works both as PHP and Java

Devin Ryan created a computer program that is valid, and produces identical output, in two completely different languages, PHP and Java.

"You were so preoccupied with whether or not you could," writes one commenter, "you didn't stop to think if you should."


//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",


class PhpJava {

function main() {


"Hello World!");