3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(5,5), array(4,3), array(4,4), array(4,0) ); // ______ - // | _____ mind. 1 Position komplett offen // || ____ Position mit Teilmengen geliefert // ||| ___ alles komplett // |||| $bitmask = bindec('0001'); printf("%04b\n", $bitmask); foreach ($arr as $w) { if ($w[0] == $w[1]) { $bitmask |= bindec('0010'); printf("%04b\n", $bitmask); } elseif ($w[1] == 0) { $bitmask ^= bindec('0101'); printf("%04b\n", $bitmask); } elseif ($w[1] > 0) { $bitmask &= ~bindec('0001'); printf("%04b\n", $bitmask); } echo "=====\n"; printf("%04b\n", $bitmask); echo "\n\n\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 55
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 55
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 24
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 36
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 48
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 48
Branch analysis from position: 55
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
filename:       /in/3iHE8
function name:  (null)
number of ops:  57
compiled vars:  !0 = $arr, !1 = $bitmask, !2 = $w
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'bindec'
          2        SEND_VAL                                                 '0001'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   16     5        INIT_FCALL                                               'printf'
          6        SEND_VAL                                                 '%2504b%0A'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
   18     9      > FE_RESET_R                                       $7      !0, ->55
         10    > > FE_FETCH_R                                               $7, !2, ->55
   19    11    >   FETCH_DIM_R                                      ~8      !2, 0
         12        FETCH_DIM_R                                      ~9      !2, 1
         13        IS_EQUAL                                                 ~8, ~9
         14      > JMPZ                                                     ~10, ->24
   21    15    >   INIT_FCALL                                               'bindec'
         16        SEND_VAL                                                 '0010'
         17        DO_ICALL                                         $11     
         18        ASSIGN_OP                                     9          !1, $11
   22    19        INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 '%2504b%0A'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > JMP                                                      ->48
   24    24    >   FETCH_DIM_R                                      ~14     !2, 1
         25        IS_EQUAL                                                 ~14, 0
         26      > JMPZ                                                     ~15, ->36
   26    27    >   INIT_FCALL                                               'bindec'
         28        SEND_VAL                                                 '0101'
         29        DO_ICALL                                         $16     
         30        ASSIGN_OP                                    11          !1, $16
   27    31        INIT_FCALL                                               'printf'
         32        SEND_VAL                                                 '%2504b%0A'
         33        SEND_VAR                                                 !1
         34        DO_ICALL                                                 
         35      > JMP                                                      ->48
   29    36    >   FETCH_DIM_R                                      ~19     !2, 1
         37        IS_SMALLER                                               0, ~19
         38      > JMPZ                                                     ~20, ->48
   31    39    >   INIT_FCALL                                               'bindec'
         40        SEND_VAL                                                 '0001'
         41        DO_ICALL                                         $21     
         42        BW_NOT                                           ~22     $21
         43        ASSIGN_OP                                    10          !1, ~22
   32    44        INIT_FCALL                                               'printf'
         45        SEND_VAL                                                 '%2504b%0A'
         46        SEND_VAR                                                 !1
         47        DO_ICALL                                                 
   35    48    >   ECHO                                                     '%3D%3D%3D%3D%3D%0A'
   36    49        INIT_FCALL                                               'printf'
         50        SEND_VAL                                                 '%2504b%0A'
         51        SEND_VAR                                                 !1
         52        DO_ICALL                                                 
   37    53        ECHO                                                     '%0A%0A%0A'
   18    54      > JMP                                                      ->10
         55    >   FE_FREE                                                  $7
   39    56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.59 ms | 1400 KiB | 17 Q