JPHP - An alternative to Zend PHP, like JRuby and Jython only for PHP

  •        176

JPHP is a new implementation for PHP which uses the Java VM. It supports many features of the PHP language (7.0+).How does it work? JPHP is a compiler like javac, it compiles php sources to JVM bytecode and then can execute the result on the Java VM. JPHP is not a replacement for the Zend PHP engine or Facebook HHVM.

http://j-php.net
https://github.com/jphp-compiler/jphp

Tags
Implementation
License
Platform

   




Related Projects

jphp - An alternative to Zend PHP, like JRuby and Jython only for PHP

  •    Java

JPHP is a new implementation for PHP which uses the Java VM. It supports many features of the PHP language (7.1+). How does it work? JPHP is a compiler like javac, it compiles php sources to JVM bytecode and then can execute the result on the Java VM.

PH7 - An Embedded Implementation of PHP (C Library)

  •    C

PH7 is a in-process software C library which implements a highly-efficient embeddable bytecode compiler and a virtual machine for the PHP programming language. In other words, PH7 is a PHP engine which allow the host application to compile and execute PHP scripts in-process. PH7 is to PHP what SQLite is to SQL. As an embedded interpreter, it allows multiple interpreter states to coexist in the same program, without any interference between them. Programmatically, foreign functions in C/C++ can be added and values can be defined in the PHP environment. Being a quite small program, it is easy to comprehend, get to grips with, and use.

IKVM.NET - Java for Mono and .NET Framework

  •    Java

IKVM.NET is an implementation of Java for Mono and the Microsoft .NET Framework. It has JVM implemented in .NET. A .NET implementation of Java class libraries. It is interoperable between Java and .NET.

GCJ

  •    C

GCJ is a portable, optimizing, ahead-of-time compiler for the Java Programming Language. It can compile Java source code to Java bytecode (class files) or directly to native machine code, and Java bytecode to native machine code.

Zend - PHP application stack

  •    PHP

Zend Server is a complete, enterprise-ready Web Application Server for running and managing PHP applications that require a high level of reliability, performance and security. It boosts application performane using byte code optimizer. It provides application stack for PHP application. It also provide support to connect to Java applications.


robovm - Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux

  •    Java

The RoboVM compiler translates Java bytecode into native ARM or x86 code. Apps run directly on the CPU. No interpreter or virtual machine involved.

jtransc - Convert your Java, Kotlin and Scala code into JavaScript, C++, D, C#, PHP, AS3, Dart and Haxe and run it everywhere

  •    Java

You can find documentation at the wiki. JTransc (Java Trans Compiler) is an AOT (ahead of time compiler) that compiles .class and .jar files into a target programming language / executable bundling all the required dependencies in a single file or folder, without requiring a jitter or an external runtime.

Cacaovm - Just-In-Time (JIT) Compiler

  •    Java

cacaovm is a Java Virtual Machine (JVM) which uses Just-In-Time (JIT) compilation to execute Java methods natively. cacaovm uses GNU Classpath or OpenJDK or phoneME as Java runtime library. The cacaovm project started as a research JVM to explore new implementation techniques. The first version for the Alpha was released in February 1997 as a binary.

Rubinius - Ruby Virutal Machine

  •    Ruby

Rubinius is an environment for the Ruby programming language providing performance, accessibility, and improved programmer productivity. Rubinius includes a bytecode virtual machine, Ruby syntax parser, bytecode compiler, generational garbage collector, just-in-time (JIT) native machine code compiler, and Ruby Core and Standard libraries.

Phalanger - The PHP Language Compiler for the .NET Framework

  •    PHP

Phalanger is a new PHP implementation introducing the PHP language into the family of compiled .NET languages. It provides PHP applications an execution environment that is fast and extremely compatible with the vast array of existing PHP code. Phalanger maintains the way how PHP

Haxe - The Cross-Platform Toolkit

  •    Haxe

Haxe is an open source toolkit that allows you to easily build cross-platform tools and applications that target many mainstream platforms.

CORBA for PHP

  •    PHP

CORBA for PHP is a PHP Extension to use CORBA objects in PHP5(Zend Engine 2). It uses MICO as its ORB and will also provide an Idl-to-PHP language mapping specification and compiler. For a PHP4 CORBA support look at the great Universe-phpext.

Eta - A powerful language for building scalable systems on the JVM

  •    Haskell

Eta is a pure, lazy, strongly typed functional programming language on the JVM. It is a dialect of Haskell on the JVM. It is pure by default which means that calling a function with the same arguments will yield the same results every time. It is lazy by default which means that data stays in unevaluated state until a function needs to peek inside.

Phc - The open source PHP compiler

  •    PHP

phc is an open source compiler for PHP with support for plugins. In addition, it can be used to pretty-print or obfuscate PHP code, as a framework for developing applications that process PHP scripts, or to convert PHP into XML and back, enabling processing of PHP scripts using XML tools. It can compile PHP source into an (optimized) executable, Combine many php scripts into a single file and lot more.

PHP4Mono - The Mono PHP Compiler

  •    PHP

PHP4Mono is a compiler that enables Mono to run PHP code. It translates PHP scripts to Common Intermediate Language (CIL). Like that PHP scripts can be executed as console applications on Mono. You can even build GUIs directly from within a PHP script!

PeachPie - The open-source PHP compiler to .NET

  •    CSharp

PeachPie is a modern PHP compiler based on the Microsoft Roslyn compiler platform and drawing from our popular Phalanger project. It allows PHP to be executed within the .NET framework, thereby opening the door for PHP developers into the world of .NET – and vice versa. The project allows for hybrid applications, where parts are written in C# and others in PHP. The parts will be entirely compatible and can communicate seamlessly, all within the .NET framework.

BrainFuck Process eXtensions

  •    

A Java bytecode compiler for the Brainfuck programming language. This compiler translates Brainfuck programs to Java bytecode and features parallel processing and a reworked, streamoriented I/O subsystem.

Javascal

  •    Java

This is a free compiler that translate a subset of Pascal ISO7185 into bytecode for the JVM. The main goal is to make Pascal platform indipendent. The compiler is written in Java and it was developed also using other application such as CUP and JFlex.

JHP

  •    Java

Implementation of PHP language in java platform. A compiler that translates Php code into java byte code and implementation of Php features in java. Enables php code to work on java enabled platforms.

Fluent API - LINQ to SQL for JPA

  •    Java

FluentJPA is a Language Integrated Query (LINQ) technology for relational (SQL) databases and JPA. It allows you to use Java to write strongly typed queries by directly integrating into the language. At first glance, it seems that we need a hook in the Java compiler. But in fact, we have full access to the compiled bytecode, which has all the necessary "knowledge". This is how FluentJPA does its magic - it reads the bytecode and translates it to SQL.