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
- Dec 8 2025
- Online
.Net Core Training Courses
- Dec 9 2025
- Online
.Net Core Training Courses
- Dec 10 2025
- Online
.Net Core Training Courses
- Dec 11 2025
- Online
.Net Core Training Courses
- Dec 12 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

From Student to AI Pro: What Does Prompt Engineering Entail and How Do You Start?
Explore the growing field of prompt engineering, a vital skill for AI enthusiasts. Learn how to craft optimized prompts for tools like ChatGPT and Gemini, and discover the career opportunities and skills needed to succeed in this fast-evolving indust

How Security Classification Guides Strengthen Data Protection in Modern Cybersecurity
A Security Classification Guide (SCG) defines data protection standards, ensuring sensitive information is handled securely across all levels. By outlining confidentiality, access controls, and declassification procedures, SCGs strengthen cybersecuri

Artificial Intelligence – A Growing Field of Study for Modern Learners
Artificial Intelligence is becoming a top study choice due to high job demand and future scope. This blog explains key subjects, career opportunities, and a simple AI study roadmap to help beginners start learning and build a strong career in the AI

Java in 2026: Why This ‘Old’ Language Is Still Your Golden Ticket to a Tech Career (And Where to Learn It!
Think Java is old news? Think again! 90% of Fortune 500 companies (yes, including Google, Amazon, and Netflix) run on Java (Oracle, 2025). From Android apps to banking systems, Java is the backbone of tech—and Sulekha IT Services is your fast track t

From Student to AI Pro: What Does Prompt Engineering Entail and How Do You Start?
Learn what prompt engineering is, why it matters, and how students and professionals can start mastering AI tools like ChatGPT, Gemini, and Copilot.

Cyber Security in 2025: The Golden Ticket to a Future-Proof Career
Cyber security jobs are growing 35% faster than any other tech field (U.S. Bureau of Labor Statistics, 2024)—and the average salary is $100,000+ per year! In a world where data breaches cost businesses $4.45 million on average (IBM, 2024), cyber secu

SAP SD in 2025: Your Ticket to a High-Flying IT Career
In the fast-paced world of IT and enterprise software, SAP SD (Sales and Distribution) is the secret sauce that keeps businesses running smoothly. Whether it’s managing customer orders, pricing, shipping, or billing, SAP SD is the backbone of sales o

SAP FICO in 2025: Salary, Jobs & How to Get Certified
AP FICO professionals earn $90,000–$130,000/year in the USA and Canada—and demand is skyrocketing! If you’re eyeing a future-proof IT career, SAP FICO (Financial Accounting & Controlling) is your golden ticket. But where do you start? Sulekha IT Serv

Train Like an AI Engineer: The Smartest Career Move You’ll Make This Year!
Why AI Engineering Is the Hottest Skillset Right Now From self-driving cars to chatbots that sound eerily human, Artificial Intelligence is no longer science fiction — it’s the backbone of modern tech. And guess what? Companies across the USA and Can

Confidence Intervals & Hypothesis Tests: The Data Science Path to Generalization
Learn how confidence intervals and hypothesis tests turn sample data into reliable population insights in data science. Understand CLT, p-values, and significance to generalize results, quantify uncertainty, and make evidence-based decisions.