3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bitmask = bindec('0101'); printf("%04b\n", $bitmask); $bitmask ^= bindec('0111'); printf("%04b\n", $bitmask); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qBl27
function name:  (null)
number of ops:  17
compiled vars:  !0 = $bitmask
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'bindec'
          1        SEND_VAL                                                 '0101'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    5     4        INIT_FCALL                                               'printf'
          5        SEND_VAL                                                 '%2504b%0A'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'bindec'
          9        SEND_VAL                                                 '0111'
         10        DO_ICALL                                         $4      
         11        ASSIGN_OP                                    11          !0, $4
    9    12        INIT_FCALL                                               'printf'
         13        SEND_VAL                                                 '%2504b%0A'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   12    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.45 ms | 1394 KiB | 17 Q