3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(5,5), array(4,3), 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 = 56
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 56
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 = 49
Branch analysis from position: 49
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 = 37
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 49
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 49
Branch analysis from position: 56
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 56
filename:       /in/FSSMc
function name:  (null)
number of ops:  58
compiled vars:  !0 = $arr, !1 = $bitmask, !2 = $w
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'bindec'
          2        SEND_VAL                                                 '0001'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   15     5        INIT_FCALL                                               'printf'
          6        SEND_VAL                                                 '%2504b%0A'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
   17     9      > FE_RESET_R                                       $7      !0, ->56
         10    > > FE_FETCH_R                                               $7, !2, ->56
   18    11    >   FETCH_DIM_R                                      ~8      !2, 0
         12        FETCH_DIM_R                                      ~9      !2, 1
         13        IS_EQUAL                                                 ~8, ~9
         14      > JMPZ                                                     ~10, ->24
   20    15    >   INIT_FCALL                                               'bindec'
         16        SEND_VAL                                                 '0010'
         17        DO_ICALL                                         $11     
         18        ASSIGN_OP                                     9          !1, $11
   21    19        INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 '%2504b%0A'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > JMP                                                      ->49
   23    24    >   FETCH_DIM_R                                      ~14     !2, 1
         25        IS_EQUAL                                                 ~14, 0
         26      > JMPZ                                                     ~15, ->37
   24    27    >   INIT_FCALL                                               'bindec'
         28        SEND_VAL                                                 '0101'
         29        DO_ICALL                                         $16     
         30        BW_NOT                                           ~17     $16
         31        ASSIGN_OP                                    10          !1, ~17
   25    32        INIT_FCALL                                               'printf'
         33        SEND_VAL                                                 '%2504b%0A'
         34        SEND_VAR                                                 !1
         35        DO_ICALL                                                 
         36      > JMP                                                      ->49
   27    37    >   FETCH_DIM_R                                      ~20     !2, 1
         38        IS_SMALLER                                               0, ~20
         39      > JMPZ                                                     ~21, ->49
   28    40    >   INIT_FCALL                                               'bindec'
         41        SEND_VAL                                                 '0001'
         42        DO_ICALL                                         $22     
         43        BW_NOT                                           ~23     $22
         44        ASSIGN_OP                                    10          !1, ~23
   29    45        INIT_FCALL                                               'printf'
         46        SEND_VAL                                                 '%2504b%0A'
         47        SEND_VAR                                                 !1
         48        DO_ICALL                                                 
   31    49    >   ECHO                                                     '%3D%3D%3D%3D%3D%0A'
   32    50        INIT_FCALL                                               'printf'
         51        SEND_VAL                                                 '%2504b%0A'
         52        SEND_VAR                                                 !1
         53        DO_ICALL                                                 
   33    54        ECHO                                                     '%0A%0A%0A'
   17    55      > JMP                                                      ->10
         56    >   FE_FREE                                                  $7
   35    57      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.21 ms | 1400 KiB | 17 Q