Peachpie is a compiler of the PHP language to .NET. The project is still in progress, but there is a plethora of interesting usecases for the compiler. This article is a tutorial for some of the more advanced interoperability options between PHP and C# using Peachpie.
As we continue making progress with the development of Peachpie, we have implemented several constructs that demonstrate the benefits of using a PHP compiler to .NET. This week, we would like to show some official PHP benchmarks and explain why this is significant.
As announced in the last blog post, there has been some major progress in the development of the Peachpie platform over the last couple of weeks. Peachpie is now capable of running compiled PHP applications on IIS and on the Microsoft Azure cloud.
Last week we introduced the recently implemented include functionality and benchmarked how Peachpie fares with it compared to standard PHP. This week we would like to present another newly included feature and to show what else we will be working on in the coming weeks.
Moving on down the roadmap, we are implementing more and more PHP functionalities into Peachpie compiler. This week, we would like to introduce a particularly popular one – Static Local Variables.
We previously talked about the include/require functionality, which we recently managed to implement in Peachpie. Now we decided to put the compiler to the test and benchmark the include function against standard PHP and Phalanger.
As we continue working on Peachpie compiler, which can be seen on our roadmap, there are more and more new functionalities and features every day. With each update, Peachpie learns to handle a set of new things and becomes increasingly compatible with the standard PHP runtime environment.