3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nibble1 = hexdec('3'); $nibble2 = hexdec('a'); // nibble1 xnor nibble2 $r = ~($nibble1 ^ $nibble2) & 0x0F; echo dechex($r); // '6'
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/on7oN
function name:  (null)
number of ops:  17
compiled vars:  !0 = $nibble1, !1 = $nibble2, !2 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'hexdec'
          1        SEND_VAL                                                 '3'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'hexdec'
          5        SEND_VAL                                                 'a'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    7     8        BW_XOR                                           ~7      !0, !1
          9        BW_NOT                                           ~8      ~7
         10        BW_AND                                           ~9      ~8, 15
         11        ASSIGN                                                   !2, ~9
    9    12        INIT_FCALL                                               'dechex'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $11     
         15        ECHO                                                     $11
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.13 ms | 1394 KiB | 17 Q