Hacker News new | ask | show | jobs
by Cu3PO42 2093 days ago
It's always really cool to see alternate language implementations with new features or advantages !A similar project for PHP is Peachpie [0]. It runs PHP on the CLR and also claims rather massive performance improvements in some areas [1]. To my understanding it does support some more language features than this.

[0] https://www.peachpie.io/ [1] https://www.peachpie.io/benchmarks

2 comments

I believe if you "do it right", PHP7 is already crazy fast. The problem is, without a JIT compiler, those random keys in arrays ("will be object or won't be object?" trope) and crazy dynamic programming is killing all those benefits, and that is typical to those huge organically grown PHP code-bases one usually sees.

Gut feeling: Any attempts on JITting see huge benefits just because of this.

Those benchmarks are extremely misleading. They compare Peachpie against PHP 7.2 without opcache.

That's like comparing your CPU against a competing product with 2/3 of the cores disabled.