2. What's Quercus
Quercus 100% Java implementation of PHP
PHP run on JVM (not Zend Engine)
Opensource GPL license
3. Why?
● Performance
– Up to 4x faster on some applications
● Security
– Avoids buffer overflow problems in C-based
implementation
● Java/PHP integration
– PHP can now access any Java library or objects
– Java can use PHP as a view technology
4. Why? (continue)
● PHP on Google App Engine
– Google cloud computing
● Long Live Process (worker)
– Php process ~ 82 live hours
- Java process ∞ live hours
● Delicate Cache vs Cache on process
7. Working with Java classes in PHP
<?php
$a = new Java("java.util.Date", 123);
echo $a->time;
?>
OR
<?php
import java.util.Date;
$a = new Date(123);
echo $a->time;
?>
8. PHP Module
Standard modules
Quercus implements the standard PHP libraries
(arrays, strings, date, regexp, zip ,zlib mcrypt, bcmath.