PHP 7.0.6 Released

JMPNZ_EX

PHP code

<?php
/*
 * Jump to the address if the xor of value1 and value2 is zero .. ???
 * opcode number: 47
 */
if(1^2) return;
?>

PHP opcodes

Function name: (null)

Compiled variables: none

line#op fetchextreturn operands
60 BW_XOR   ~0 1,2
 1 JMPZ     ~0,->4
 2 RETURN     null
 3 JMP     ->4
74 RETURN     1

User Contributed Notes

gennady at kovshenin dot com
1 year ago
This one is emitted inside a do .. while structure where booleans are compared with logical OR.
To Top