PHP - Manual: JMPNZ
2024-12-21
<?php
/*
* Jump to the address if the value is not zero
* opcode number: 44
*/
for($i=0; $i<3; $i++){
echo "hi";
}
?>
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 |
官方地址:https://www.php.net/manual/en/internals2.opcodes.jmpnz.php