3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 00 $observator = 1; //10 $coaching = 2; // 01 // 11 $userPermission = ($observator | $coaching); var_dump($userPermission); $allowed = ($userPermission & $observator) === $observator; var_dump($allowed); $newUserPermission = ($userPermission ^ $observator); var_dump($newUserPermission); $allowed2 = ($newUserPermission & $observator) === $observator; var_dump($allowed2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Je5aU
function name:  (null)
number of ops:  25
compiled vars:  !0 = $observator, !1 = $coaching, !2 = $userPermission, !3 = $allowed, !4 = $newUserPermission, !5 = $allowed2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 1
    5     1        ASSIGN                                                   !1, 2
   10     2        BW_OR                                            ~8      !0, !1
          3        ASSIGN                                                   !2, ~8
   12     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                                 
   15     7        BW_AND                                           ~11     !2, !0
          8        IS_IDENTICAL                                     ~12     !0, ~11
          9        ASSIGN                                                   !3, ~12
   17    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
   20    13        BW_XOR                                           ~15     !2, !0
         14        ASSIGN                                                   !4, ~15
   22    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !4
         17        DO_ICALL                                                 
   24    18        BW_AND                                           ~18     !4, !0
         19        IS_IDENTICAL                                     ~19     !0, ~18
         20        ASSIGN                                                   !5, ~19
   26    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !5
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.97 ms | 1395 KiB | 15 Q