Skip to content

Instantly share code, notes, and snippets.

View yasirtaher's full-sized avatar
🏠
Working from home

Yasir Taher yasirtaher

🏠
Working from home
View GitHub Profile
@yasirtaher
yasirtaher / PhpJava.java
Created September 2, 2016 04:03 — forked from avafloww/PhpJava.java
This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
/*<?php
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",
//\u000A\u002F\u002A
class PhpJava {
static function main() {
echo(//\u000A\u002A\u002F
"Hello World!");
}}
//\u000A\u002F\u002A
PhpJava::main();