3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mask = bindec("111101001"); $bit = bindec("100"); $mask = $mask & (~ $bit); var_dump(decbin($mask));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S9jQU
function name:  (null)
number of ops:  18
compiled vars:  !0 = $mask, !1 = $bit
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'bindec'
          1        SEND_VAL                                                 '111101001'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'bindec'
          5        SEND_VAL                                                 '100'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    6     8        BW_NOT                                           ~6      !1
          9        BW_AND                                           ~7      !0, ~6
         10        ASSIGN                                                   !0, ~7
    8    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'decbin'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.89 ms | 1386 KiB | 19 Q