Peachpie lets PHP complied files to be executed in .NET framework

After the announcement of making .NET framework an open-source resource, Microsoft continued its open-source revolution by making its Roslyn complier technology an open-source resource too. This powerful compiler can enable the developer to compile codes of C# to JavaScript and thereby enabling an interactive scripting environment with C#.
Now a recently unveiled Roslyn-based compiler project named Peachpie allows PHP to be compiled into portable class libraries and executed in the .Net framework.
In addition to possible performance gains, compiling to .Net provides PHP developers access to the existing culture of software written for .Net, as well as features of the .Net runtime itself.
Another advantage of using Roslyn: It generates abstract syntax trees (ASTs) from PHP code. Allowing the source code to be transformed by the compiler and made available to the user makes it easier to write analysis tools or applications that modify the behavior of other applications.
Peachpie stems from an earlier project named Phalanger, a PHP runtime and compiler for .Net. Provided as a toolset for Visual Studio 2010 through 2015, Phalanger enabled such tasks as debugging a PHP website directly in Visual Studio.
Many features planned for Peachpie aren't available yet, as the current emphasis is on providing a working example of the technology. For now, the parser supports only PHP 5, although support for PHP 7 is planned. A basic implementation of the AST is available, but plans are under way to build ASTs using Roslyn's advanced ISymbol interface. And none of the .Net-related reflection or introspection tools are available yet.
PHP's broad deployment -- it's been in use for 20 years -- guarantees it will remain a common technology choice for rapid Web development. With PHP 7, the language enjoyed a major performance boost and gained its own abstract syntax tree functionality, among other feats.
But PHP's inconsistent design and piecemeal evolution opened up opportunities for other platforms, such as Node.js, to step in and offer a more modern set of solutions. (PHP debugging, for instance, has long been problematic).
Peachpie isn't likely to arrest that trend, but it will at least provide a way for both .Net and PHP developers to leverage what each development environment has to offer: PHP's breadth of existing applications and development expertise and .Net's runtime and metaprogramming facilities.
Find a course provider to learn .Net
Java training | J2EE training | J2EE Jboss training | Apache JMeter trainingTake the next step towards your professional goals in .Net
Don't hesitate to talk with our course advisor right now
Receive a call
Contact NowMake a call
+1-732-338-7323Take our FREE Skill Assessment Test to discover your strengths and earn a certificate upon completion.
Enroll for the next batch
.Net Core Training Courses
- Jun 9 2025
- Online
.Net Core Training Courses
- Jun 10 2025
- Online
.Net Core Training Courses
- Jun 11 2025
- Online
.Net Core Training Courses
- Jun 12 2025
- Online
.Net Core Training Courses
- Jun 13 2025
- Online
Related blogs on .Net to learn more

How to become a Dot Net Developer
Become a skilled .NET developer by mastering C# and .NET Core, obtaining relevant certifications, and gaining practical experience through internships or projects. Enhance your career prospects with in-depth knowledge and hands-on practice in .NET de

One Integrated Library coming soon for .NET developers!
Microsoft is planning to incorporate platform integration concept called "one library to rule them all." With Dot Net Standard, developers have to master a single base library to reach multiple Dot Net platforms

A career in DOT Net Programming | Its multifarious benefits and future scope
The IT sector is a highly promising industry with diverse employment opportunities. One of the core programming languages systems that drove the global growth of the IT industry is DOT Net programming.

What is the use of ‘Tag Helpers’ in ASP.Net 5?
Microsoft’s ASP.Net latest release aka ASP.Net 5 – aka ASP.Net vNext comes with several advancements and features that help to improve the techniques used for developing modern web applications. With more than 10 years of evolution, this ASP.Net is c

More reasons to choose Net open-source framework!
Microsoft is a pioneer in software manufacturing and it never ceased to surprise the software community around the world.

.NET Framework in a Nutshell
.NET is a programming framework developed by Microsoft which allows developers to develop software applications more easily and efficiently. Starting from 1990, Microsoft has developed numerous versions of .NET framework. Framework is simply a bunch

A Comprehensive Look at the Career of a .NET Developer
The ASP.NET framework, developed and marketed by Microsoft, is a major framework for the development of applications and dynamic web pages. The increased accessibility to internet services around the world has resulted in numerous career opportunitie

Why ASP.NET Core 1.0 Has Replaced ASP.NET 5
World of information technology is extremely volatile and the technologies continue to evolve and change consistently. One of the web technologies “.NET” (dot net) introduced by Microsoft has also changed of late. The new technology; ASP.NET core now

Tick, Tick, Time to upgrade your .NET Framework!
Building idiot-proof software programs is a great deal and takes a lot of effort. Development frameworks like .NET are Indeed a great boon to the software developers.

Everything you needed to know about Dot Net
The .NET is a very large framework and sometimes is hard to decide whether to code something or use an existing component of the framework. An outline of whatever DOT NET offers is simple records. It is tough to keep in path since, .NET evolves very
Latest blogs on technology to explore

What Does a Cybersecurity Analyst Do? 2025
Discover the vital role of a Cybersecurity Analyst in 2025, protecting organizations from evolving cyber threats through monitoring, threat assessment, and incident response. Learn about career paths, key skills, certifications, and why now is the be

Artificial intelligence in healthcare: Medical and Diagnosis field
Artificial intelligence in healthcare: Medical and Diagnosis field

iOS 18.5 Is Here: 7 Reasons You Should Update Right Now
In this blog, we shall discuss Apple releases iOS 18.5 with new features and bug fixes

iOS 18.4.1 Update: Why Now is the Perfect Time to Master iPhone App Development
Discover how Apple’s iOS 18.4.1 update (April 2025) enhances security and stability—and why mastering iPhone app development now is key to building future-ready apps.

What is network security Monitoring? A complete guide
In the digital world, we have been using the cloud to store our confidential data to register our details; it can be forms, applications, or product purchasing platforms like e-commerce sites. Though digital platforms have various advantages, one pri

How to Handle Complex and Challenging Projects with Management Skills
Discover actionable strategies and essential management skills to effectively navigate the intricacies of challenging projects. From strategic planning to adaptive problem-solving, learn how to lead your team and achieve exceptional outcomes in compl

What are the 5 phases of project management?
A streamlined approach to ensure project success by breaking it into five essential stages: Initiation, Planning, Execution, Monitoring & Controlling, and Closing. Each phase builds on the other, guiding the team from concept to completion with clear

About Microsoft Job Openings and Certification Pathway to Explore Job Vacancies
Explore exciting Microsoft job openings across the USA in fields like software engineering, data science, cybersecurity, and more. Enhance your career with specialized certifications and land top roles at Microsoft with Sulekha's expert courses.