Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. JVM
  3. JPHP

JPHP

Apache-2.0Javajppm-0.6.7

JPHP is a PHP compiler that runs on the Java Virtual Machine, enabling use of Java libraries and building desktop/Android apps.

Visit WebsiteGitHubGitHub
1.7k stars165 forks0 contributors

What is JPHP?

JPHP is an implementation of the PHP programming language that runs on the Java Virtual Machine (JVM). It compiles PHP source code into JVM bytecode, allowing developers to leverage Java libraries and build applications beyond web servers, including desktop and Android apps. It addresses limitations of traditional PHP engines by offering a modern runtime, Unicode support, and multithreading.

Target Audience

PHP developers looking to integrate Java libraries, build cross-platform desktop applications, or create Android apps using PHP syntax. It also appeals to Java developers seeking to use PHP for scripting within JVM environments.

Value Proposition

Developers choose JPHP for its ability to bridge PHP and Java ecosystems, enabling access to vast Java libraries while maintaining PHP's ease of use. Its performance via JIT compilation, support for modern PHP features, and extensions for GUI and mobile development offer a unique alternative to Zend PHP or HHVM.

Overview

JPHP - an implementation of PHP on Java VM

Use Cases

Best For

  • Integrating Java libraries into PHP applications
  • Building desktop GUI applications with PHP and JavaFX/SWT
  • Developing Android applications using PHP syntax
  • Creating multithreaded PHP applications for improved concurrency
  • Using PHP with full Unicode string support (UTF-16)
  • Running PHP on the JVM for performance and ecosystem benefits

Not Ideal For

  • Web projects reliant on standard PHP extensions like Curl or PCRE, as JPHP replaces the Zend runtime with its own library
  • Applications requiring full PHP 7.4+ language feature compatibility, due to missing implementations such as Parameter Type Widening and flexible heredoc syntax
  • Teams with existing PHP codebases dependent on Zend engine specifics, leading to potential porting challenges and incompatibility

Pros & Cons

Pros

Java Ecosystem Integration

Enables seamless use of Java libraries and classes directly in PHP code, tapping into the extensive Java ecosystem for enhanced functionality.

Modern Runtime Library

Replaces Zend's runtime with a cleaner design, offering full Unicode string support (UTF-16) and native multithreading via a Thread class for improved concurrency.

Cross-Platform Development

Supports building desktop GUI applications with JavaFX or SWT extensions and Android apps through the jphp-android project, expanding PHP beyond web use.

Performance via JIT

JIT compilation provides competitive speed, benchmarked as faster than PHP 5.6 and close to PHP 7.0, though slightly slower than PHP 7.4.

Cons

Incomplete PHP Support

Lacks full compatibility with PHP 7.2 to 7.4 features, such as Parameter Type Widening and references in typed properties, limiting adoption for modern PHP code.

Java Tooling Dependency

Requires setup with jppm package manager and Gradle, adding complexity for PHP developers unfamiliar with Java build systems and increasing initial overhead.

Limited Extension Ecosystem

Uses proprietary extensions instead of Zend's, reducing availability of popular PHP libraries and frameworks, which may hinder integration with existing tools.

Open Source Alternative To

JPHP is an open-source alternative to the following products:

H
HHVM

An open-source virtual machine designed for executing programs written in Hack and PHP, developed by Meta.

Zend Engine
Zend Engine

Zend Engine is the open-source scripting engine that interprets PHP code, originally developed by Zend Technologies.

Frequently Asked Questions

Quick Stats

Stars1,709
Forks165
Contributors0
Open Issues40
Last commit4 years ago
CreatedSince 2013

Tags

#java-interop#gradle#compiler#unicode#jit-compilation#java#android-development#php-compiler#multithreading#bytecode#jit#jvm#gui-framework#php#desktop-applications

Built With

A
Android
S
SWT
J
JavaFX
J
Java
G
Gradle

Links & Resources

Website

Included in

JVM2.2k
Auto-fetched 1 day ago

Related Projects

FregeFrege

Frege is a Haskell for the JVM. It brings purely functional programing to the Java platform.

Stars3,699
Forks149
Last commit5 days ago
gojavagojava

GoJava - Java bindings for Go packages

Stars183
Forks16
Last commit8 years ago
RembulanRembulan

Rembulan, an implementation of Lua 5.3 for the Java Virtual Machine

Stars168
Forks28
Last commit6 years ago
KawaKawa

Extension of the Scheme language, which is in the Lisp family of programming languages

Stars0
Forks0
Last commit
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub