略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: JMPNZ_EX

2024-12-25

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
add a note add a note

User Contributed Notes 1 note

up
0
gennady at kovshenin dot com
4 years ago
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

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3