This one is emitted inside a do .. while structure where booleans are compared with logical OR.
PHP - Manual: JMPNZ_EX
2024-12-25
<?php
/*
* Jump to the address if the xor of value1 and value2 is zero .. ???
* opcode number: 47
*/
if(1^2) return;
?>
Function name: (null)
Compiled variables: none
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | BW_XOR | ~0 | 1,2 | ||
1 | JMPZ | ~0,->4 | ||||
2 | RETURN | null | ||||
3 | JMP | ->4 | ||||
7 | 4 | RETURN | 1 |
This one is emitted inside a do .. while structure where booleans are compared with logical OR.
官方地址:https://www.php.net/manual/en/internals2.opcodes.jmpnz-ex.php