11# PHPJava - JVM Emulator by PHP
22[ ![ contributions welcome] ( https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat )] ( https://github.com/dwyl/esta/issues )
33![ Compatibility] ( https://img.shields.io/badge/Compatibility-7.2%20and%20greater-green.svg )
4- [ ![ Build Status] ( https://travis-ci.org/php-java/php-java.png ?branch=master )] ( https://travis-ci.org/memory-agape /php-java )
5- [ ![ Total Downloads] ( https://poser.pugx.org/php-java/php-java/downloads )] ( https://packagist.org/packages/memory-agape /php-java )
4+ [ ![ Build Status] ( https://travis-ci.org/php-java/php-java.svg ?branch=master )] ( https://travis-ci.org/php-java /php-java )
5+ [ ![ Total Downloads] ( https://poser.pugx.org/php-java/php-java/downloads )] ( https://packagist.org/packages/php-java /php-java )
66[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-green.svg )] ( https://opensource.org/licenses/MIT )
77<p align =" center " ><img src =" ./docs/img/logo.png " height =" 300 " ></p >
88
@@ -292,9 +292,9 @@ $javaClass = new JavaClass(
292292### Runtime options
293293- Available options on ` JavaClass ` or ` JavaArchive ` :
294294
295- | Options | Value | Default | Description | Targeted |
296- | :-------------: | :-------------: | :-------------: | :-------------: | :-------------: |
297- | entrypoint | string or null | null | The entrypoint in JAR. | JavaArchive |
295+ | Options | Value | Default | Description | Targeted |
296+ | :--------| :------| :--------| :------------| :---------|
297+ | entrypoint | string or null | null | The entrypoint in JAR. | JavaArchive |
298298| max_stack_exceeded | integer | 9999 | Execute more than the specified number of times be stopped the operation. | JavaClass |
299299| max_execution_time | integer | 30 | Maximum execution time. | JavaClass |
300300| strict | boolean | true | When ` true ` , PHPJava calls a method, variables, and so on strictly; otherwise, it calls them ambiguously. | Both |
@@ -309,7 +309,6 @@ $javaClass = new JavaClass(
309309| dry_run (Not Implemented) | boolean | false | Checking JavaClass/JavaArchive structure only. When ` true ` , PHPJava runs in dry-run mode. | Both |
310310| env (Not Implemented) | enum | Environment::EXPERIMENTAL | Your environment. | Both |
311311
312-
313312- Example of JavaClass:
314313``` php
315314<?php
@@ -420,20 +419,20 @@ public static void main(java.lang.String[])
420419
421420- ** Problem 2:** PHPJava cannot completely cover Java types because PHP is different from Java.
422421 The comparison table of Java and PHPJava is shown below:
423-
424- | Java | PHPJava |
425- | :-------------: | :-------------: |
426- | null | null |
427- | boolean | \PHPJava\Kernel\Types\\ _ Boolean (including ` __toString ` ) |
428- | char | \PHPJava\Kernel\Types\\ _ Char (including ` __toString ` ) |
429- | byte | \PHPJava\Kernel\Types\\ _ Byte (including ` __toString ` ) |
430- | short | \PHPJava\Kernel\Types\\ _ Short (including ` __toString ` ) |
431- | int | \PHPJava\Kernel\Types\\ _ Int (including ` __toString ` ) |
432- | long | \PHPJava\Kernel\Types\\ _ Long (including ` __toString ` ) |
433- | float | \PHPJava\Kernel\Types\\ _ Float (including ` __toString ` ) |
434- | double | \PHPJava\Kernel\Types\\ _ Double (including ` __toString ` ) |
435-
436- - ** Problem 3:** PHPJava cannot calculate big number of ` double ` and ` float ` because ` gmp_pow ` cannot calculate negative exponents. So, PHPJavas use built-in function ` pow ` .
422+
423+ | Java | PHPJava |
424+ | :-----| :--------|
425+ | null | null |
426+ | boolean | \PHPJava\Kernel\Types\\ _ Boolean (including ` __toString ` ) |
427+ | char | \PHPJava\Kernel\Types\\ _ Char (including ` __toString ` ) |
428+ | byte | \PHPJava\Kernel\Types\\ _ Byte (including ` __toString ` ) |
429+ | short | \PHPJava\Kernel\Types\\ _ Short (including ` __toString ` ) |
430+ | int | \PHPJava\Kernel\Types\\ _ Int (including ` __toString ` ) |
431+ | long | \PHPJava\Kernel\Types\\ _ Long (including ` __toString ` ) |
432+ | float | \PHPJava\Kernel\Types\\ _ Float (including ` __toString ` ) |
433+ | double | \PHPJava\Kernel\Types\\ _ Double (including ` __toString ` ) |
434+
435+ - ** Problem 3:** PHPJava cannot calculate big number of ` double ` and ` float ` because ` gmp_pow ` cannot calculate negative exponents. So, PHPJava uses built-in function ` pow ` .
437436
438437## Run Kotlin on the PHPJava
439438Do you wanna run Kotlin on the PHPJava? Are you serious?
0 commit comments