Skip to content

Instantly share code, notes, and snippets.

View alex-guenther's full-sized avatar

Alexander Günther alex-guenther

View GitHub Profile
@alex-guenther
alex-guenther / PhpJava.java
Created October 20, 2016 13:54 — 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();
lib LibSQLite3("sqlite3")
# Assertions:
# ===========
# I'm expecting you to be working with UTF-8, the UTF-16 methods are not implemented.
type SQLite3 : Void*
type Sqlite3_stmt : Void*
type Str : UInt8*
fun libversion = sqlite3_libversion() : UInt8*