Internals2/opcodes/jmpznz-Phpdoc专题

JMPZNZ

PHP code

<?php
/*
 * Jump to the address given in the operands if the value is zero;
 * jump to the address given in extended data if nonzero.
 * opcode number: 45
 */
for($i=0; $i<3; $i++){ 
    echo "hi";
}
?>

PHP opcodes

Function name: (null)

Compiled variables: !0=$i

line # op fetch ext return operands
6 0 ASSIGN       !0,0
  1 IS_SMALLER     ~1 !0,3
  2 JMPZNZ   6   ~1,->8
  3 POST_INC     ~2 !0
  4 FREE       ~2
  5 JMP       ->1
7 6 ECHO       'hi'
8 7 JMP       ->3
9 8 RETURN       1

本站为非盈利网站,作品由网友提供上传,如无意中有侵犯您的版权,请联系删除