3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bitPointer = 2; $length = 1; $mask = (0xff >> (8 - $length)) << (8 - $bitPointer); printf("%08b", $mask);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rN7Jg
function name:  (null)
number of ops:  12
compiled vars:  !0 = $bitPointer, !1 = $length, !2 = $mask
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2
    4     1        ASSIGN                                                   !1, 1
    6     2        SUB                                              ~5      8, !1
          3        SR                                               ~6      255, ~5
          4        SUB                                              ~7      8, !0
          5        SL                                               ~8      ~6, ~7
          6        ASSIGN                                                   !2, ~8
    7     7        INIT_FCALL                                               'printf'
          8        SEND_VAL                                                 '%2508b'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.72 ms | 1394 KiB | 15 Q