Skip to content

Comment on Compile PHP to .NET online

Comments

The generated C# code is so weird and completely incomprehensible. I've never seen anything like that.

The practical use case also seems non-existent. How can you possibly translate all sorts of functions that .NET doesn't even have?

To be fair, it is decompiled code you are looking at. If you open the dropdown you will find the optgroup with the label that says "Decompiled".

they re-implemented all functions in .net. The code is decompiled from bytecode thats why its incomprehensible and hence the title PHP to .NET and not PHP to C#.

pchpOP

Like someone below already answered, it's actually compiled to MSIL and what you're looking at is decompiled C#. All PHP functions have been reimplemented in .NET.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.