Vulcan Logic Dumper mainly known as VLD is a PHP extension by which you can see your PHP code in opcode format. This format will help advanced developers to optimize their PHP code. VLD hooks into the Zend Engine and dumps all the opcodes (execution units) of a script. It can be used to see what is going on in the Zend Engine.
This extension’s all versions are in beta state and probably will never be in stable state(as per vld developers)
Latest Version: 0.12 Compatible Upto: 5.5
Download and Installation Instructions
If svn installed in your system then get the code from its repository by executing below command
svn co svn://svn.xdebug.org/svn/php/vld/trunk vld
Else execute below lines of command
wget http://pecl.php.net/get/vld tar xzf vld-0.11.1.tgz
Now rename the vld-0.11.1 by vld
cd into the vld directory and execute the following command
phpize ./configure make install
Open php.ini file using below command
Now add the below code into this file.
Restart your apache/httpd service
service httpd restart
Congratulations you are done with vld installation.
Do confirmation that whether the vld properly installed or not
In terminal execute the below code
php -m | grep vld
If output is `vld` then all is fine.
Do phpinfo() on browser
Now if in listing vld is present then all is fine
Create a php file.
Write some sample code.
Execute the below command in terminal
php -dvld.active=1 yourfilename.php
What is printed on your terminal screen is called php opcode.
If you are using this tool first time start with some simple code like
echo 'hello'; print 'hello'; $name = 'Soumi'; echo 'My name is ' . $name; echo "My name is $name"; echo 'My name is ', $name;