3v4l.org

run code in 300+ PHP versions simultaneously
<?php function printtaktyka ($fighter_session, $fighter_name) { global $lg_submitVT, $lg_taktykaT; $query = "SELECT abyss_tryb from XF_abyss WHERE fighter_name = '$fighter_name' "; $result = mysql_query ($query); $row = mysql_fetch_array ($result); $abyss_tryb = $row ["abyss_tryb"]; $tryby[1]="EKSPLORACJA"; $tryby[2]="POLOWANIE"; $tryby[3]="WIEDZA"; $napisy[1]="$lg_taktykaT[1]";//Eksploracja $napisy[2]="$lg_taktykaT[2]";//Polowanie $napisy[3]="$lg_taktykaT[3]";// Wiedza for ($j=1; $j<4 ; $j++) { if ($tryby[$j] == $abyss_tryb) {$obecna=$napisy[$j];} } echo ('<form name="formularz2" method="post" action="taktyka.php"><div align="left"> '); //print ("<BR><input type=\"hidden\" name=\"path\" value=\"$fchar_way_val\" >"); print(" $obecna $lg_taktykaT[0] <BR> "); for ($i=1; $i<4 ; $i++) { $data1 = $abyss_tryb; $data2 = $tryby[$i]; $data3 = $napisy[$i]; if ($data2 == $data1) { print ("<br><input type=\"radio\" form =\"formularz2\" name=\"ab\" value=\"$data2\" checked > $data3 "); } else { print ("<br><input type=\"radio\" form =\"formularz2\" name=\"ab\" value=\"$data2\" > $data3 "); } } echo "<br><input type=\"submit\" name=\"submit\" value=\"$lg_submitVT[0]\">"; echo ('</form></div> '); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0WQVu
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E > > RETURN                                                   1

Function printtaktyka:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 38
Branch analysis from position: 46
1 jumps found. (Code = 42) Position 1 = 77
Branch analysis from position: 77
2 jumps found. (Code = 44) Position 1 = 79, Position 2 = 56
Branch analysis from position: 79
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 56
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 70
Branch analysis from position: 63
1 jumps found. (Code = 42) Position 1 = 76
Branch analysis from position: 76
2 jumps found. (Code = 44) Position 1 = 79, Position 2 = 56
Branch analysis from position: 79
Branch analysis from position: 56
Branch analysis from position: 70
2 jumps found. (Code = 44) Position 1 = 79, Position 2 = 56
Branch analysis from position: 79
Branch analysis from position: 56
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 38
Branch analysis from position: 46
Branch analysis from position: 38
Branch analysis from position: 43
filename:       /in/0WQVu
function name:  printtaktyka
number of ops:  86
compiled vars:  !0 = $fighter_session, !1 = $fighter_name, !2 = $lg_submitVT, !3 = $lg_taktykaT, !4 = $query, !5 = $result, !6 = $row, !7 = $abyss_tryb, !8 = $tryby, !9 = $napisy, !10 = $j, !11 = $obecna, !12 = $i, !13 = $data1, !14 = $data2, !15 = $data3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        BIND_GLOBAL                                              !2, 'lg_submitVT'
          3        BIND_GLOBAL                                              !3, 'lg_taktykaT'
    7     4        ROPE_INIT                                     3  ~17     'SELECT+abyss_tryb+from+XF_abyss+WHERE+fighter_name+%3D+%27'
          5        ROPE_ADD                                      1  ~17     ~17, !1
          6        ROPE_END                                      2  ~16     ~17, '%27++'
          7        ASSIGN                                                   !4, ~16
    8     8        INIT_FCALL_BY_NAME                                       'mysql_query'
          9        SEND_VAR_EX                                              !4
         10        DO_FCALL                                      0  $20     
         11        ASSIGN                                                   !5, $20
    9    12        INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         13        SEND_VAR_EX                                              !5
         14        DO_FCALL                                      0  $22     
         15        ASSIGN                                                   !6, $22
   10    16        FETCH_DIM_R                                      ~24     !6, 'abyss_tryb'
         17        ASSIGN                                                   !7, ~24
   12    18        ASSIGN_DIM                                               !8, 1
         19        OP_DATA                                                  'EKSPLORACJA'
   13    20        ASSIGN_DIM                                               !8, 2
         21        OP_DATA                                                  'POLOWANIE'
   14    22        ASSIGN_DIM                                               !8, 3
         23        OP_DATA                                                  'WIEDZA'
   15    24        FETCH_DIM_R                                      ~30     !3, 1
         25        CAST                                          6  ~31     ~30
         26        ASSIGN_DIM                                               !9, 1
         27        OP_DATA                                                  ~31
   16    28        FETCH_DIM_R                                      ~33     !3, 2
         29        CAST                                          6  ~34     ~33
         30        ASSIGN_DIM                                               !9, 2
         31        OP_DATA                                                  ~34
   17    32        FETCH_DIM_R                                      ~36     !3, 3
         33        CAST                                          6  ~37     ~36
         34        ASSIGN_DIM                                               !9, 3
         35        OP_DATA                                                  ~37
   18    36        ASSIGN                                                   !10, 1
         37      > JMP                                                      ->44
   20    38    >   FETCH_DIM_R                                      ~39     !8, !10
         39        IS_EQUAL                                                 !7, ~39
         40      > JMPZ                                                     ~40, ->43
         41    >   FETCH_DIM_R                                      ~41     !9, !10
         42        ASSIGN                                                   !11, ~41
   18    43    >   PRE_INC                                                  !10
         44    >   IS_SMALLER                                               !10, 4
         45      > JMPNZ                                                    ~44, ->38
   23    46    >   ECHO                                                     '%3Cform+name%3D%22formularz2%22+method%3D%22post%22+action%3D%22taktyka.php%22%3E%3Cdiv+align%3D%22left%22%3E+'
   25    47        ROPE_INIT                                     5  ~47     '+'
         48        ROPE_ADD                                      1  ~47     ~47, !11
         49        ROPE_ADD                                      2  ~47     ~47, '++'
         50        FETCH_DIM_R                                      ~45     !3, 0
         51        ROPE_ADD                                      3  ~47     ~47, ~45
         52        ROPE_END                                      4  ~46     ~47, '+%3CBR%3E+'
         53        ECHO                                                     ~46
   26    54        ASSIGN                                                   !12, 1
         55      > JMP                                                      ->77
   28    56    >   ASSIGN                                                   !13, !7
   29    57        FETCH_DIM_R                                      ~52     !8, !12
         58        ASSIGN                                                   !14, ~52
   30    59        FETCH_DIM_R                                      ~54     !9, !12
         60        ASSIGN                                                   !15, ~54
   31    61        IS_EQUAL                                                 !14, !13
         62      > JMPZ                                                     ~56, ->70
   33    63    >   ROPE_INIT                                     5  ~58     '%3Cbr%3E%3Cinput+type%3D%22radio%22+form+%3D%22formularz2%22+name%3D%22ab%22+value%3D%22'
         64        ROPE_ADD                                      1  ~58     ~58, !14
         65        ROPE_ADD                                      2  ~58     ~58, '%22++checked+%3E+'
         66        ROPE_ADD                                      3  ~58     ~58, !15
         67        ROPE_END                                      4  ~57     ~58, '+'
         68        ECHO                                                     ~57
         69      > JMP                                                      ->76
   37    70    >   ROPE_INIT                                     5  ~62     '%3Cbr%3E%3Cinput+type%3D%22radio%22+form+%3D%22formularz2%22+name%3D%22ab%22+value%3D%22'
         71        ROPE_ADD                                      1  ~62     ~62, !14
         72        ROPE_ADD                                      2  ~62     ~62, '%22++%3E+'
         73        ROPE_ADD                                      3  ~62     ~62, !15
         74        ROPE_END                                      4  ~61     ~62, '+'
         75        ECHO                                                     ~61
   26    76    >   PRE_INC                                                  !12
         77    >   IS_SMALLER                                               !12, 4
         78      > JMPNZ                                                    ~66, ->56
   40    79    >   ROPE_INIT                                     3  ~69     '%3Cbr%3E%3Cinput+type%3D%22submit%22+name%3D%22submit%22+value%3D%22'
         80        FETCH_DIM_R                                      ~67     !2, 0
         81        ROPE_ADD                                      1  ~69     ~69, ~67
         82        ROPE_END                                      2  ~68     ~69, '%22%3E'
         83        ECHO                                                     ~68
   41    84        ECHO                                                     '%3C%2Fform%3E%3C%2Fdiv%3E+'
   42    85      > RETURN                                                   null

End of function printtaktyka

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.83 ms | 1403 KiB | 13 Q