3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head><title>Glycine max gene</title> </head> <body> <center> <p align="center">&nbsp;</p> <p align="center"><b><span style="font-size:18pt;">Glycine max gene</span></b></p> <hr></p></p> <? 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>"); } } ?> </center> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 41
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 52
Branch analysis from position: 46
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
1 jumps found. (Code = 42) Position 1 = 89
Branch analysis from position: 89
2 jumps found. (Code = 44) Position 1 = 94, Position 2 = 67
Branch analysis from position: 94
1 jumps found. (Code = 42) Position 1 = 113
Branch analysis from position: 113
2 jumps found. (Code = 44) Position 1 = 115, Position 2 = 97
Branch analysis from position: 115
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 97
2 jumps found. (Code = 43) Position 1 = 99, Position 2 = 104
Branch analysis from position: 99
1 jumps found. (Code = 42) Position 1 = 112
Branch analysis from position: 112
2 jumps found. (Code = 44) Position 1 = 115, Position 2 = 97
Branch analysis from position: 115
Branch analysis from position: 97
Branch analysis from position: 104
2 jumps found. (Code = 44) Position 1 = 115, Position 2 = 97
Branch analysis from position: 115
Branch analysis from position: 97
Branch analysis from position: 67
2 jumps found. (Code = 44) Position 1 = 94, Position 2 = 67
Branch analysis from position: 94
Branch analysis from position: 67
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 89
Branch analysis from position: 89
Branch analysis from position: 41
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 41
Branch analysis from position: 40
Branch analysis from position: 41
Branch analysis from position: 8
filename:       /in/TrmAc
function name:  (null)
number of ops:  117
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
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Chead%3E%3Ctitle%3EGlycine+max+gene%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%3Ccenter%3E%0A%3Cp+align%3D%22center%22%3E%26nbsp%3B%3C%2Fp%3E%0A%3Cp+align%3D%22center%22%3E%3Cb%3E%3Cspan+style%3D%22font-size%3A18pt%3B%22%3EGlycine+max+gene%3C%2Fspan%3E%3C%2Fb%3E%3C%2Fp%3E%0A%3Chr%3E%3C%2Fp%3E%3C%2Fp%3E%0A'
   10     1        INIT_FCALL                                               'date_default_timezone_set'
          2        SEND_VAL                                                 'UTC'
          3        DO_ICALL                                                 
   11     4        ASSIGN                                                   !0, 40
   12     5        BOOL_NOT                                         ~15     !1
          6      > JMPZ                                                     ~15, ->8
   13     7    >   ASSIGN                                                   !1, 1
   16     8    >   INIT_FCALL_BY_NAME                                       'mysql_connect'
          9        SEND_VAL_EX                                              'localhost'
         10        SEND_VAL_EX                                              'root'
         11        SEND_VAL_EX                                              'rhkddj12'
         12        DO_FCALL                                      0  $17     
         13        ASSIGN                                                   !2, $17
   17    14        INIT_FCALL_BY_NAME                                       'mysql_select_db'
         15        SEND_VAL_EX                                              'ust'
         16        SEND_VAR_EX                                              !2
         17        DO_FCALL                                      0          
   18    18        IS_EQUAL                                                 !3, null
         19      > JMPZ                                                     ~20, ->22
   19    20    >   ASSIGN                                                   !4, 'select+%2A+from+gmax_info+order+by+Locus_name'
         21      > JMP                                                      ->26
   21    22    >   ROPE_INIT                                     3  ~23     'select+%2A+from+gmax_info+where+Locus_name+like+%27%25'
         23        ROPE_ADD                                      1  ~23     ~23, !3
         24        ROPE_END                                      2  ~22     ~23, '%25%27'
         25        ASSIGN                                                   !4, ~22
   23    26    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         27        SEND_VAR_EX                                              !4
         28        SEND_VAR_EX                                              !2
         29        DO_FCALL                                      0  $26     
         30        ASSIGN                                                   !5, $26
   24    31        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
         32        SEND_VAR_EX                                              !5
         33        DO_FCALL                                      0  $28     
         34        ASSIGN                                                   !6, $28
   25    35        DIV                                              ~30     !6, !0
         36        CAST                                          4  ~31     ~30
         37        ASSIGN                                                   !7, ~31
   26    38        MOD                                              ~33     !6, !0
         39      > JMPZ                                                     ~33, ->41
   27    40    >   PRE_INC                                                  !7
   30    41    >   SUB                                              ~35     !1, 1
         42        MUL                                              ~36     !0, ~35
         43        ASSIGN                                                   !8, ~36
   32    44        IS_EQUAL                                                 !3, null
         45      > JMPZ                                                     ~38, ->52
   33    46    >   ROPE_INIT                                     4  ~40     'select+%2A+from+gmax_info+order+by+Locus_name+limit+'
         47        ROPE_ADD                                      1  ~40     ~40, !8
         48        ROPE_ADD                                      2  ~40     ~40, '%2C+'
         49        ROPE_END                                      3  ~39     ~40, !0
         50        ASSIGN                                                   !9, ~39
         51      > JMP                                                      ->59
   35    52    >   ROPE_INIT                                     6  ~44     'select+%2A+from+gmax_info+where+Locus_name+like+%27%25'
         53        ROPE_ADD                                      1  ~44     ~44, !3
         54        ROPE_ADD                                      2  ~44     ~44, '%25%27+limit+'
         55        ROPE_ADD                                      3  ~44     ~44, !8
         56        ROPE_ADD                                      4  ~44     ~44, '%2C+'
         57        ROPE_END                                      5  ~43     ~44, !0
         58        ASSIGN                                                   !9, ~43
   38    59    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         60        SEND_VAR_EX                                              !9
         61        SEND_VAR_EX                                              !2
         62        DO_FCALL                                      0  $48     
         63        ASSIGN                                                   !10, $48
   40    64        ECHO                                                     '%3Ctable+border%3D1+bordercolor%3D%27%230033FF%27+align%3Dcenter%3E'
   41    65        ECHO                                                     '%3Ctr%3E%3Cth%3ELocus_name%3Cth%3ETranscript_name%3Cth%3EGene_name%3Cth%3EDescription'
   43    66      > JMP                                                      ->89
   44    67    >   ECHO                                                     '%3Ctr%3E'
   45    68        ROPE_INIT                                     3  ~52     '%3Ctd%3E+'
         69        FETCH_DIM_R                                      ~50     !11, 'Locus_name'
         70        ROPE_ADD                                      1  ~52     ~52, ~50
         71        ROPE_END                                      2  ~51     ~52, '+%3C%2Ftd%3E'
         72        ECHO                                                     ~51
   46    73        ROPE_INIT                                     3  ~56     '%3Ctd%3E+'
         74        FETCH_DIM_R                                      ~54     !11, 'Transcript_name'
         75        ROPE_ADD                                      1  ~56     ~56, ~54
         76        ROPE_END                                      2  ~55     ~56, '+%3C%2Ftd%3E'
         77        ECHO                                                     ~55
   47    78        ROPE_INIT                                     3  ~60     '%3Ctd%3E+'
         79        FETCH_DIM_R                                      ~58     !11, 'Gene_name'
         80        ROPE_ADD                                      1  ~60     ~60, ~58
         81        ROPE_END                                      2  ~59     ~60, '+%3C%2Ftd%3E'
         82        ECHO                                                     ~59
   48    83        ROPE_INIT                                     3  ~64     '%3Ctd%3E+'
         84        FETCH_DIM_R                                      ~62     !11, 'Description'
         85        ROPE_ADD                                      1  ~64     ~64, ~62
         86        ROPE_END                                      2  ~63     ~64, '+%3C%2Ftd%3E'
         87        ECHO                                                     ~63
   49    88        ECHO                                                     '%3C%2Ftr%3E'
   43    89    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         90        SEND_VAR_EX                                              !10
         91        DO_FCALL                                      0  $66     
         92        ASSIGN                                           ~67     !11, $66
         93      > JMPNZ                                                    ~67, ->67
   51    94    >   ECHO                                                     '%3C%2Ftable%3E'
   53    95        ASSIGN                                                   !12, 1
         96      > JMP                                                      ->113
   54    97    >   IS_EQUAL                                                 !12, !1
         98      > JMPZ                                                     ~69, ->104
   55    99    >   ROPE_INIT                                     3  ~71     '%5B'
        100        ROPE_ADD                                      1  ~71     ~71, !12
        101        ROPE_END                                      2  ~70     ~71, '%5D'
        102        ECHO                                                     ~70
        103      > JMP                                                      ->112
   57   104    >   ROPE_INIT                                     7  ~74     '+%3Ca+href+%3D+hapmap_search_gene.php%3Fnow%3D'
        105        ROPE_ADD                                      1  ~74     ~74, !12
        106        ROPE_ADD                                      2  ~74     ~74, '%26Locus_name%3D'
        107        ROPE_ADD                                      3  ~74     ~74, !3
        108        ROPE_ADD                                      4  ~74     ~74, '%3E%5B'
        109        ROPE_ADD                                      5  ~74     ~74, !12
        110        ROPE_END                                      6  ~73     ~74, '%5D%0A%09%09%09%09%09%09%3C%2Fa%3E'
        111        ECHO                                                     ~73
   53   112    >   PRE_INC                                                  !12
        113    >   IS_SMALLER_OR_EQUAL                                      !12, !7
        114      > JMPNZ                                                    ~79, ->97
   61   115    >   ECHO                                                     '++++%0A%3C%2Fcenter%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   64   116      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.38 ms | 1408 KiB | 15 Q