3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(5,5), array(4,4), array(4,4), array(1,1) ); // ______ - // | _____ 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[0] > $w[1]) { $bitmask &= ~bindec('0001'); printf("%04b\n", $bitmask); if ($w[1] == 0) { $bitmask |= bindec('0100'); 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 = 28, Position 2 = 48
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 48
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 48
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/3BebH
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
   20    11    >   FETCH_DIM_R                                      ~8      !2, 0
         12        FETCH_DIM_R                                      ~9      !2, 1
         13        IS_EQUAL                                                 ~8, ~9
         14      > JMPZ                                                     ~10, ->24
   22    15    >   INIT_FCALL                                               'bindec'
         16        SEND_VAL                                                 '0010'
         17        DO_ICALL                                         $11     
         18        ASSIGN_OP                                     9          !1, $11
   23    19        INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 '%2504b%0A'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > JMP                                                      ->48
   25    24    >   FETCH_DIM_R                                      ~14     !2, 0
         25        FETCH_DIM_R                                      ~15     !2, 1
         26        IS_SMALLER                                               ~15, ~14
         27      > JMPZ                                                     ~16, ->48
   27    28    >   INIT_FCALL                                               'bindec'
         29        SEND_VAL                                                 '0001'
         30        DO_ICALL                                         $17     
         31        BW_NOT                                           ~18     $17
         32        ASSIGN_OP                                    10          !1, ~18
   28    33        INIT_FCALL                                               'printf'
         34        SEND_VAL                                                 '%2504b%0A'
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                                 
   30    37        FETCH_DIM_R                                      ~21     !2, 1
         38        IS_EQUAL                                                 ~21, 0
         39      > JMPZ                                                     ~22, ->48
   31    40    >   INIT_FCALL                                               'bindec'
         41        SEND_VAL                                                 '0100'
         42        DO_ICALL                                         $23     
         43        ASSIGN_OP                                     9          !1, $23
   32    44        INIT_FCALL                                               'printf'
         45        SEND_VAL                                                 '%2504b%0A'
         46        SEND_VAR                                                 !1
         47        DO_ICALL                                                 
   36    48    >   ECHO                                                     '%3D%3D%3D%3D%3D%0A'
   37    49        INIT_FCALL                                               'printf'
         50        SEND_VAL                                                 '%2504b%0A'
         51        SEND_VAR                                                 !1
         52        DO_ICALL                                                 
   38    53        ECHO                                                     '%0A%0A%0A'
   18    54      > JMP                                                      ->10
         55    >   FE_FREE                                                  $7
   40    56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.67 ms | 1392 KiB | 17 Q