Compiling and Running a PHP on .NET Core
summary
Claim: PHP compiles to .NET Core with the PeachPie compiler and runs inside ASP.NET Core/Kestrel, preserving debugging, PDB sequence points, NuGet packaging and profiler support. Implementation uses Roslyn to emit DLLs and PDBs, synthesizes globals, traits and anonymous classes, and optimizes virtual dispatch. A full WordPress site (WordPress powers ~35% of the web) compiles and serves on .NET Core, interoperates with C# libraries and tools, and runs successfully with measurable performance and diagnostics.
AI-written summary · about
chapters (11)
- 0:00Introduction to PHP on .NET
- 1:12Benefits of the platform
- 5:15Cross-language debugging
- 9:28Compilation mechanics
- 12:00Project configuration
- 17:17Handling language features
- 21:38Optimization and dispatch
- 25:40Advanced language structures
- 28:44Running PHP on ASP.NET Core
- 34:11Real-world application example
- 38:24Extending legacy apps








