Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see php bytecode file

Tags:

php

bytecode

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.

like image 766
Curious Avatar asked Feb 02 '16 06:02

Curious


1 Answers

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.

like image 176
jbafford Avatar answered Oct 19 '22 18:10

jbafford