Jens A. Koch

PHP Implementations

PHP – http://php.net/

The official PHP implementation in C.

PHPPHP – https://github.com/ircmaxell/PHPPHP
A PHP VM implementation in PHP.

HHVM – http://hhvm.com/
HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP. Developed by Facebook.

JPHP – – http://j-php.net/ – https://github.com/jphp-compiler/jphp@jphpcompiler
JPHP implements PHP on the Java VM. It supports many features of the PHP language (5.6+).
JPHP is a compiler like javac, it compiles PHP source to JVM bytecode and executes the result on the Java VM.
Its basically a pure language implementation, because there are no additional libraries, like cURL or DB abstraction layers like PDO.
Boils down to: you can’t run your favorite Framework or CMS using JPHP, but you can use JPHP to stay in the PHP syntax and start using Java libs and classes and execute your JPHP code on Android.

Quercus – https://github.com/CleverCloud/Quercus
Java implementation of PHP (formerly part of Resin).

BiancaProject https://github.com/CleverCloud/Bianca
Bianca is a fast, 100% Java implementation of the PHP language (fork of Quercus).

PH7 – http://ph7.symisc.net/
An Embedded Implementation of PHP (C Library).

Phalanger – http://www.php-compiler.net/ – https://github.com/DEVSENSE/Phalanger – @phpcompiler
PHP runtime & compiler for .NET/Mono.

HippyVM – http://hippyvm.com/
An implementation of the PHP language in RPython (Restricted Python). The PHP code is translated to RPython and then to native C.
The development of this approach was sponsored by Facebook, as part of finding an alternative to the Zend Engine.
They tried to get VC funding, but failed. Lesson learned: development of a HLL-VM is no startup business.

KPHP (KittenPHP) – https://github.com/vk-com/kphp-kdb
VKontake PHP to C++ transformer.

Roadsend PHP Compiler – https://github.com/weyrick/roadsend-php

Roadsend PHP Raven – https://github.com/weyrick/roadsend-php-raven
Rewrite of the Roadsend PHP compiler in C++ using LLVM.

php compiler – http://www.phpcompiler.org/
Written by Paul Biggar.

Recki-CT https://github.com/google/recki-ct
Recki-CT is a set of tools that implement a compiler for a subset of PHP written in PHP by Anthony Ferrara (@ircmaxell).

PyHP.jshttps://github.com/juokaz/pyhp.js using PyHP https://github.com/juokaz/pyhp

PyHP.js is a PHP interpreter in JavaScript running in a web browser. The underlying PyHP PHP interpreter  is written in Python is translated into C using RPython. This is translated into JavaScript using emscripten. The resulting javascript file is asm.js. It can be loaded in any browser or ran with Node.js.

EPHP – https://github.com/altenwald/ephp
PHP Interpreter pure 100% Erlang written by Manuel Rubio.

Peachpiehttp://www.peachpie.io/iolevel – https://twitter.com/pchpcompiler
Peachpie compiles PHP to the .NET environment.
It stands on the shoulders of Phalanger, but uses the new Roslyn Compiler Infrastructure from Microsoft.
It enables you to interface .NET libraries and classes. For example: WordPress running on .NET/Mono – http://www.wpdotnet.com/http://www.wpdotnet.com/

LLVM Playgrounds:

Zend ByteCode to LLVM Compiler – https://github.com/preillyme/llvm
(started by Nuno Lopes, not finished)

php-llvmhttps://gitorious.org/php-llvm/php-llvm.git/

Tagua VM – https://github.com/tagua-vm/tagua-vm
Tagua VM is an experimental PHP Virtual Machine written with the Rust language and the LLVM Compiler Infrastructure.
Written by Ivan Enderlin (https://github.com/Hywan).

Comments Off on PHP Implementations

Comments are closed.