3v4l.org

run code in 500+ PHP versions simultaneously
<?php $nbytestr = '123'; $bytestr = 'ABC'; var_dump(bin2hex($nbytestr)); var_dump(bin2hex($bytestr)); var_dump(bin2hex(~$nbytestr)); var_dump(bin2hex(~$bytestr)); var_dump(bin2hex($nbytestr | $bytestr)); var_dump(bin2hex($nbytestr & $bytestr)); var_dump(bin2hex($nbytestr ^ $bytestr)); var_dump($nbytestr >> 1); var_dump($bytestr >> 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IBUDD
function name:  (null)
number of ops:  58
compiled vars:  !0 = $nbytestr, !1 = $bytestr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '123'
    4     1        ASSIGN                                                       !1, 'ABC'
    6     2        INIT_FCALL                                                   'var_dump'
          3        INIT_FCALL                                                   'bin2hex'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                             $4      
          6        SEND_VAR                                                     $4
          7        DO_ICALL                                                     
    7     8        INIT_FCALL                                                   'var_dump'
          9        INIT_FCALL                                                   'bin2hex'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                             $6      
         12        SEND_VAR                                                     $6
         13        DO_ICALL                                                     
    9    14        INIT_FCALL                                                   'var_dump'
         15        INIT_FCALL                                                   'bin2hex'
         16        BW_NOT                                               ~8      !0
         17        SEND_VAL                                                     ~8
         18        DO_ICALL                                             $9      
         19        SEND_VAR                                                     $9
         20        DO_ICALL                                                     
   10    21        INIT_FCALL                                                   'var_dump'
         22        INIT_FCALL                                                   'bin2hex'
         23        BW_NOT                                               ~11     !1
         24        SEND_VAL                                                     ~11
         25        DO_ICALL                                             $12     
         26        SEND_VAR                                                     $12
         27        DO_ICALL                                                     
   12    28        INIT_FCALL                                                   'var_dump'
         29        INIT_FCALL                                                   'bin2hex'
         30        BW_OR                                                ~14     !0, !1
         31        SEND_VAL                                                     ~14
         32        DO_ICALL                                             $15     
         33        SEND_VAR                                                     $15
         34        DO_ICALL                                                     
   13    35        INIT_FCALL                                                   'var_dump'
         36        INIT_FCALL                                                   'bin2hex'
         37        BW_AND                                               ~17     !0, !1
         38        SEND_VAL                                                     ~17
         39        DO_ICALL                                             $18     
         40        SEND_VAR                                                     $18
         41        DO_ICALL                                                     
   14    42        INIT_FCALL                                                   'var_dump'
         43        INIT_FCALL                                                   'bin2hex'
         44        BW_XOR                                               ~20     !0, !1
         45        SEND_VAL                                                     ~20
         46        DO_ICALL                                             $21     
         47        SEND_VAR                                                     $21
         48        DO_ICALL                                                     
   16    49        INIT_FCALL                                                   'var_dump'
         50        SR                                                   ~23     !0, 1
         51        SEND_VAL                                                     ~23
         52        DO_ICALL                                                     
   17    53        INIT_FCALL                                                   'var_dump'
         54        SR                                                   ~25     !1, 1
         55        SEND_VAL                                                     ~25
         56        DO_ICALL                                                     
         57      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.42 ms | 1628 KiB | 15 Q