3v4l.org

run code in 300+ PHP versions simultaneously
<pre> <?php $manager = bindec('000010000000000000000000000000'); $roles = bindec('000011110000100100000000000000'); $isManager = ($roles & $manager) !== 0; var_dump($isManager); $roles = bindec('000001110000100100000000000000'); $isManager = ($roles & $manager) !== 0; var_dump($isManager); ?> </pre>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3uH8T
function name:  (null)
number of ops:  27
compiled vars:  !0 = $manager, !1 = $roles, !2 = $isManager
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cpre%3E%0A'
    3     1        INIT_FCALL                                               'bindec'
          2        SEND_VAL                                                 '000010000000000000000000000000'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    5     5        INIT_FCALL                                               'bindec'
          6        SEND_VAL                                                 '000011110000100100000000000000'
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    6     9        BW_AND                                           ~7      !1, !0
         10        IS_NOT_IDENTICAL                                 ~8      ~7, 0
         11        ASSIGN                                                   !2, ~8
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'bindec'
         16        SEND_VAL                                                 '000001110000100100000000000000'
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !1, $11
   10    19        BW_AND                                           ~13     !1, !0
         20        IS_NOT_IDENTICAL                                 ~14     ~13, 0
         21        ASSIGN                                                   !2, ~14
   11    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
   14    25        ECHO                                                     '%3C%2Fpre%3E'
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.12 ms | 1395 KiB | 17 Q