<story><title>Graalphp: An Efficient PHP Implementation Built on GraalVM</title><url>https://github.com/abertschi/graalphp</url></story><parent_chain></parent_chain><comment><author>sradman</author><text>Truffle is an integration layer for interpreted languages in GraalVM. The canonical Truffle language included in the Graal distribution is GraalJS, a replacement for the now deprecated Nashorn JavaScript engine for the JVM. Similarly, TruffleRuby is an alternative to JRuby and GraalPython is an alternative to Jython. Neither of these Truffle implementations has gained traction and they will not until they fully implement the main frameworks for each ecosystem (Ruby on Rails and Django&amp;#x2F;NumPy respectively).&lt;p&gt;The same will hold true for a Truffle implementation of PHP. It will need to support the C interface components like PDO database drivers and the Laravel web framework.&lt;p&gt;The linked project was created as part of a graduate thesis and demonstrates the feasibility of GraalVM&amp;#x2F;Truffle as a performant polyglot platform. I&amp;#x27;m not convinced that Ruby&amp;#x2F;Python&amp;#x2F;PHP integration with Java Bytecode is an important use case moving forward. It could have been when Rails&amp;#x2F;Django&amp;#x2F;Laravel were on top of the web framework game but the demand for this use case is diminishing.</text></comment>
<story><title>Graalphp: An Efficient PHP Implementation Built on GraalVM</title><url>https://github.com/abertschi/graalphp</url></story><parent_chain></parent_chain><comment><author>mrigger</author><text>From the report at &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;abertschi.ch&amp;#x2F;default_public&amp;#x2F;ethz&amp;#x2F;graalphp&amp;#x2F;download.php&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;abertschi.ch&amp;#x2F;default_public&amp;#x2F;ethz&amp;#x2F;graalphp&amp;#x2F;download.p...&lt;/a&gt;: &amp;quot;Experimental results indicate that our runtime reaches competitive results with performance gains of up to 859% compared to PHP 7. These preliminary results suggest that a Truffle-hosted PHP implementation might be significantly faster than existing language implementations.&amp;quot;</text></comment>