How to see php bytecode file

末鹿安然 提交于 2020-01-01 03:28:05

问题


I am doing it for learning purpose. I have gone through many articles that php first convert its source code to bytecode, but i am not able to find a way to see the bytecode format, that how it looks like?

In java and C there are many ways to see bytecode file. but unable to find any article in php to see converted bytecode.


回答1:


To turn PHP code into a list of opcodes, you can use vld, the "Vulcan Logic Dumper" (available on GitHub and PECL).

The PHP documentation also maintains a list of opcodes.

Also available is 3v4l.org, which allows you to input PHP code and view part of the vld dump on its results page.




回答2:


I think this might help you : https://github.com/facebook/hhvm

or search for facebook hiphop.



来源:https://stackoverflow.com/questions/35146894/how-to-see-php-bytecode-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!