3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bitMask = 3; $allowedBitValues = array(1,2); $splited = array(); foreach($allowedBitValues as $bitValue) { var_dump($bitValue == ($bitMask & $bitValue)); if ($bitValue == $bitMask & $bitValue) { $splited[] = $bitValue; } } var_dump($splited);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 15
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/doqep
function name:  (null)
number of ops:  21
compiled vars:  !0 = $bitMask, !1 = $allowedBitValues, !2 = $splited, !3 = $bitValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 3
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
    7     3      > FE_RESET_R                                       $7      !1, ->16
          4    > > FE_FETCH_R                                               $7, !3, ->16
    8     5    >   INIT_FCALL                                               'var_dump'
          6        BW_AND                                           ~8      !0, !3
          7        IS_EQUAL                                         ~9      !3, ~8
          8        SEND_VAL                                                 ~9
          9        DO_ICALL                                                 
    9    10        IS_EQUAL                                         ~11     !3, !0
         11        BW_AND                                           ~12     !3, ~11
         12      > JMPZ                                                     ~12, ->15
   10    13    >   ASSIGN_DIM                                               !2
         14        OP_DATA                                                  !3
    7    15    > > JMP                                                      ->4
         16    >   FE_FREE                                                  $7
   14    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.09 ms | 1395 KiB | 15 Q