0

When working in a C IDE I can simply click on view disassembly to view the assembly code. Does PHP have an equivalent? It looks like Opcodes are as low - level as one can get but I wanted to verify.

Secondly,
What is a good IDE to view the low - level representation (opcodes?), I currently just installed Eclipse.

Thanks in advance.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by chris.aaker
0

I do not believe that you will be able to find a IDE that converts php code to assembly however you would be more likely to find a converter for php to C if you look hard enough since php was written in C. The reason why I say php to assembly converters probably don't exist is because of the shear amount of work to create such an IDE. However it would be rather simple to convert php code to its original C source so I'm sure there would be at least a couple out there.

0

Thanks,

I know Facebook uses a tool to convert PHP to C++. So perhaps this is the best route. See what the code looks like in C or C++ and then find a way to convert it to assembly.

I found a site that explains opcodes and I'm not 100% sure on this but it looks like the
y are used by a virtual machine to create the machine code.

Not sure how opcodes(they look PHP specefic) relate to C but I think that going from PHP to C to assembly is one method of optimization.

Thanks,

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.