In-depth understanding of PHP opcode principles, in-depth understanding of opcode
This article describes the principle of opcode in PHP. Share to everyone for your reference, as follows:
OpCode is a PHP script-compiled intermediate language, like
In-depth understanding of the OpCode principles of PHP, in-depth understanding of opcode
This article describes the principles of OpCode in PHP. We will share this with you for your reference. The details are as follows:
OpCode is an intermediate
You can also view it through VLD. For more information, see my blog. csdn. net21aspnetarticledetails7002644 install parsekit extension pecl. php. netpackageparsekit download the latest # wgetpecl. php. netgetparsekit-1.3.0.tgz installation process
Opcode: PHP code performance problems: Recently I saw 《? Some PHPCodingTips mentioned: avoid computation in the for condition .? Let's take a look at the rise of vld: for ($ i0; $ I & lt; strlen ($ str); $ I ++) for ($ i0, $ jstrlen ($ str); $ I &
We know that PHP is an interpreted language, and dynamic content written with them relies on the corresponding interpreter program to run, and the interpreter program needs to parse the input script code and generate the intermediate code that can
Opcode: PHP code performance problems: Recently I saw 《? Some PHPCodingTips mentioned: avoid computation in the for condition .? Let's take a look at the rise of vld: for ($ I = 0; $ I & lt; strlen ($ str); $ I ++) for ($ I = 0, $ j = st opcode:
The machine can only understand the machine language, but how is Php executed by the machine as an interpreted script?
In fact, PHP is divided into lexical analysis, syntax analysis, and opcode compiling during execution. The Zend engine will
OpCode to see the problem of PHP code performance
Recently seen in the "? some php Coding Tips mention one thing: avoid doing arithmetic in the for-judging condition.
?
So the rise with VLD looked at:
for ($i =0; $i<><>
For ($i =0, $j =strlen (
After learning about the running mechanism of PHP, it is easy to look at opcode cache: & amp; nbsp; we can see that PHP implements a typical dynamic language execution process: after obtaining a piece of code, after the process of lexical parsing
This article illustrates the principle of opcode in PHP. Share to everyone for your reference, specific as follows:
OpCode is a PHP script-compiled intermediate language, like the Java bytecode, or. Net of the MSL. This article is mainly based on
Opcondes is a PHP script-compiled intermediate language, like the Java byte Code, or. NET MSL. (have never known ~)
For example in the text
Copy CodeThe code is as follows:
echo "Hello World";
$a = 1 + 1;
echo $a;
?>
PHP executes this code
Opcondes is a PHP script-compiled intermediate language, like the Java byte Code, or. NET MSL. (have never known ~)
For example in the text
Copy Code code as follows:
echo "Hello World";
$a = 1 + 1;
echo $a;
?>
PHP
Today from the computer room sent back machine can not start, often troubleshooting a variety of problems, just solved the problem can not start, and met the illegal opcode error, after various methods, finally solved
HP 380 G6 Installation SuSE 1
Opcondes is a PHP script-compiled intermediate language, like the Java Code of Byte, or. NET MSL. (have never known ~)
As an example of this,
Copy CodeThe code is as follows:
echo "Hello World";
$a = 1 + 1;
echo $a;
?>
PHP executes this code in
There are two main pits1.XXXSLICE related opcode#define SLICE #define slice_1 #define slice_2 #define slice_3 #define Store_slice#define store_slice_1 #define store_slice_2 #define store_ Slice_3 #define delete_slice
After the online php code is updated, how does one clear the previously cached opcode? After the online php code is updated, how does one clear the previously cached opcode?
Reply content:
After the online php code is updated, how does one clear
Follow this post to check the opcode for installing VLD in PHP. Blog. csdn. net21aspnetarticledetails7002644 is not the result on the post. please advise on how to verify whether VLD is installed and view opcode [[email & #160; protected] htdocs] #
First talk about the implementation of the PHP program process, which explains this, just to start our optimization trip.
Client (for example, browser)
-"Request Get hello.php
--The CGI server (for example, Apache) receives a request to find a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.