3v4l.org

run code in 300+ PHP versions simultaneously
<? date_default_timezone_set('UTC'); $limit = 40; // 한 화면에 보여지는 재학생 행(레코드)수 if(!$now) { $now = 1; // 현재 페이지 번호 초기화 } $connect = mysql_connect("localhost", "root", "rhkddj12"); mysql_select_db("ust", $connect); if($Locus_name == null) { $sql = "select * from gmax_info order by Locus_name"; } else { $sql = "select * from gmax_info where Locus_name like '%$Locus_name%'"; } $result = mysql_query($sql, $connect); $total = mysql_num_rows($result); // 전체 재학생 행(레코드) 수 $total_page = (int)($total/$limit); if($total%$limit) { // 나머지가 있으면 $total_page++; // 전체 페이지 수 1 증가 } $start = ($now-1)*$limit; if($Locus_name == null) { $sql1 = "select * from gmax_info order by Locus_name limit $start, $limit"; } else { $sql1 = "select * from gmax_info where Locus_name like '%$Locus_name%' limit $start, $limit"; } $result1 = mysql_query($sql1, $connect); echo "<table border=1 bordercolor='#0033FF' align=center>"; echo "<tr><th>Locus_name<th>Transcript_name<th>Gene_name<th>Description"; while($row = mysql_fetch_array($result1)) { echo "<tr>"; echo "<td> $row[Locus_name] </td>"; echo "<td> $row[Transcript_name] </td>"; echo "<td> $row[Gene_name] </td>"; echo "<td> $row[Description] </td>"; echo "</tr>"; } echo "</table>"; for($i=1; $i<=$total_page; $i++) { if($i == $now) { echo("[$i]"); // 현재 페이지는 링크 안함 } else { echo (" <a href = hapmap_search_gene.php?now=$i&Locus_name=$Locus_name>[$i] </a>"); } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 40
Branch analysis from position: 39
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 51
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
1 jumps found. (Code = 42) Position 1 = 88
Branch analysis from position: 88
2 jumps found. (Code = 44) Position 1 = 93, Position 2 = 66
Branch analysis from position: 93
1 jumps found. (Code = 42) Position 1 = 112
Branch analysis from position: 112
2 jumps found. (Code = 44) Position 1 = 114, Position 2 = 96
Branch analysis from position: 114
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 96
2 jumps found. (Code = 43) Position 1 = 98, Position 2 = 103
Branch analysis from position: 98
1 jumps found. (Code = 42) Position 1 = 111
Branch analysis from position: 111
2 jumps found. (Code = 44) Position 1 = 114, Position 2 = 96
Branch analysis from position: 114
Branch analysis from position: 96
Branch analysis from position: 103
2 jumps found. (Code = 44) Position 1 = 114, Position 2 = 96
Branch analysis from position: 114
Branch analysis from position: 96
Branch analysis from position: 66
2 jumps found. (Code = 44) Position 1 = 93, Position 2 = 66
Branch analysis from position: 93
Branch analysis from position: 66
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 88
Branch analysis from position: 88
Branch analysis from position: 40
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 40
Branch analysis from position: 39
Branch analysis from position: 40
Branch analysis from position: 7
filename:       /in/CShe1
function name:  (null)
number of ops:  115
compiled vars:  !0 = $limit, !1 = $now, !2 = $connect, !3 = $Locus_name, !4 = $sql, !5 = $result, !6 = $total, !7 = $total_page, !8 = $start, !9 = $sql1, !10 = $result1, !11 = $row, !12 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'UTC'
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, 40
    4     4        BOOL_NOT                                         ~15     !1
          5      > JMPZ                                                     ~15, ->7
    5     6    >   ASSIGN                                                   !1, 1
    8     7    >   INIT_FCALL_BY_NAME                                       'mysql_connect'
          8        SEND_VAL_EX                                              'localhost'
          9        SEND_VAL_EX                                              'root'
         10        SEND_VAL_EX                                              'rhkddj12'
         11        DO_FCALL                                      0  $17     
         12        ASSIGN                                                   !2, $17
    9    13        INIT_FCALL_BY_NAME                                       'mysql_select_db'
         14        SEND_VAL_EX                                              'ust'
         15        SEND_VAR_EX                                              !2
         16        DO_FCALL                                      0          
   10    17        IS_EQUAL                                                 !3, null
         18      > JMPZ                                                     ~20, ->21
   11    19    >   ASSIGN                                                   !4, 'select+%2A+from+gmax_info+order+by+Locus_name'
         20      > JMP                                                      ->25
   13    21    >   ROPE_INIT                                     3  ~23     'select+%2A+from+gmax_info+where+Locus_name+like+%27%25'
         22        ROPE_ADD                                      1  ~23     ~23, !3
         23        ROPE_END                                      2  ~22     ~23, '%25%27'
         24        ASSIGN                                                   !4, ~22
   15    25    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         26        SEND_VAR_EX                                              !4
         27        SEND_VAR_EX                                              !2
         28        DO_FCALL                                      0  $26     
         29        ASSIGN                                                   !5, $26
   16    30        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
         31        SEND_VAR_EX                                              !5
         32        DO_FCALL                                      0  $28     
         33        ASSIGN                                                   !6, $28
   17    34        DIV                                              ~30     !6, !0
         35        CAST                                          4  ~31     ~30
         36        ASSIGN                                                   !7, ~31
   18    37        MOD                                              ~33     !6, !0
         38      > JMPZ                                                     ~33, ->40
   19    39    >   PRE_INC                                                  !7
   22    40    >   SUB                                              ~35     !1, 1
         41        MUL                                              ~36     !0, ~35
         42        ASSIGN                                                   !8, ~36
   24    43        IS_EQUAL                                                 !3, null
         44      > JMPZ                                                     ~38, ->51
   25    45    >   ROPE_INIT                                     4  ~40     'select+%2A+from+gmax_info+order+by+Locus_name+limit+'
         46        ROPE_ADD                                      1  ~40     ~40, !8
         47        ROPE_ADD                                      2  ~40     ~40, '%2C+'
         48        ROPE_END                                      3  ~39     ~40, !0
         49        ASSIGN                                                   !9, ~39
         50      > JMP                                                      ->58
   27    51    >   ROPE_INIT                                     6  ~44     'select+%2A+from+gmax_info+where+Locus_name+like+%27%25'
         52        ROPE_ADD                                      1  ~44     ~44, !3
         53        ROPE_ADD                                      2  ~44     ~44, '%25%27+limit+'
         54        ROPE_ADD                                      3  ~44     ~44, !8
         55        ROPE_ADD                                      4  ~44     ~44, '%2C+'
         56        ROPE_END                                      5  ~43     ~44, !0
         57        ASSIGN                                                   !9, ~43
   30    58    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         59        SEND_VAR_EX                                              !9
         60        SEND_VAR_EX                                              !2
         61        DO_FCALL                                      0  $48     
         62        ASSIGN                                                   !10, $48
   32    63        ECHO                                                     '%3Ctable+border%3D1+bordercolor%3D%27%230033FF%27+align%3Dcenter%3E'
   33    64        ECHO                                                     '%3Ctr%3E%3Cth%3ELocus_name%3Cth%3ETranscript_name%3Cth%3EGene_name%3Cth%3EDescription'
   35    65      > JMP                                                      ->88
   36    66    >   ECHO                                                     '%3Ctr%3E'
   37    67        ROPE_INIT                                     3  ~52     '%3Ctd%3E+'
         68        FETCH_DIM_R                                      ~50     !11, 'Locus_name'
         69        ROPE_ADD                                      1  ~52     ~52, ~50
         70        ROPE_END                                      2  ~51     ~52, '+%3C%2Ftd%3E'
         71        ECHO                                                     ~51
   38    72        ROPE_INIT                                     3  ~56     '%3Ctd%3E+'
         73        FETCH_DIM_R                                      ~54     !11, 'Transcript_name'
         74        ROPE_ADD                                      1  ~56     ~56, ~54
         75        ROPE_END                                      2  ~55     ~56, '+%3C%2Ftd%3E'
         76        ECHO                                                     ~55
   39    77        ROPE_INIT                                     3  ~60     '%3Ctd%3E+'
         78        FETCH_DIM_R                                      ~58     !11, 'Gene_name'
         79        ROPE_ADD                                      1  ~60     ~60, ~58
         80        ROPE_END                                      2  ~59     ~60, '+%3C%2Ftd%3E'
         81        ECHO                                                     ~59
   40    82        ROPE_INIT                                     3  ~64     '%3Ctd%3E+'
         83        FETCH_DIM_R                                      ~62     !11, 'Description'
         84        ROPE_ADD                                      1  ~64     ~64, ~62
         85        ROPE_END                                      2  ~63     ~64, '+%3C%2Ftd%3E'
         86        ECHO                                                     ~63
   41    87        ECHO                                                     '%3C%2Ftr%3E'
   35    88    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         89        SEND_VAR_EX                                              !10
         90        DO_FCALL                                      0  $66     
         91        ASSIGN                                           ~67     !11, $66
         92      > JMPNZ                                                    ~67, ->66
   43    93    >   ECHO                                                     '%3C%2Ftable%3E'
   45    94        ASSIGN                                                   !12, 1
         95      > JMP                                                      ->112
   46    96    >   IS_EQUAL                                                 !12, !1
         97      > JMPZ                                                     ~69, ->103
   47    98    >   ROPE_INIT                                     3  ~71     '%5B'
         99        ROPE_ADD                                      1  ~71     ~71, !12
        100        ROPE_END                                      2  ~70     ~71, '%5D'
        101        ECHO                                                     ~70
        102      > JMP                                                      ->111
   49   103    >   ROPE_INIT                                     7  ~74     '+%3Ca+href+%3D+hapmap_search_gene.php%3Fnow%3D'
        104        ROPE_ADD                                      1  ~74     ~74, !12
        105        ROPE_ADD                                      2  ~74     ~74, '%26Locus_name%3D'
        106        ROPE_ADD                                      3  ~74     ~74, !3
        107        ROPE_ADD                                      4  ~74     ~74, '%3E%5B'
        108        ROPE_ADD                                      5  ~74     ~74, !12
        109        ROPE_END                                      6  ~73     ~74, '%5D%0A%09%09%09%09%09%09%3C%2Fa%3E'
        110        ECHO                                                     ~73
   45   111    >   PRE_INC                                                  !12
        112    >   IS_SMALLER_OR_EQUAL                                      !12, !7
        113      > JMPNZ                                                    ~79, ->96
   53   114    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.95 ms | 1408 KiB | 15 Q