3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dbname = 'RPGDugEAOoSvpJcerHpc'; /*填入数据库连接信息*/ $host = 'sqld.duapp.com'; $port = 4050; $user = 'ISDddvTQAsC00NmHsOrCcqIL';//用户名(api key) $pwd = 'GMEWfs0973mqDGlgfsz7zVSnEQxqAePM';//密码(secret key) /*以上信息都可以在数据库详情页查找到*/ /*接着调用mysql_connect()连接服务器*/ $link = @mysql_connect("{$host}:{$port}",$user,$pwd,true); if(!$link) { die("Connect Server Failed: " . mysql_error()); } /*连接成功后立即调用mysql_select_db()选中需要连接的数据库*/ if(!mysql_select_db($dbname,$link)) { die("Select Database Failed: " . mysql_error($link)); } /*至此连接已完全建立,就可对当前数据库进行相应的操作了*/ /* Update records */ mysql_query("UPDATE message SET openid=1 WHERE id < 10"); printf ("Updated records: %d ", mysql_affected_rows()); mysql_query("COMMIT"); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 34
Branch analysis from position: 29
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qv5b0
function name:  (null)
number of ops:  47
compiled vars:  !0 = $dbname, !1 = $host, !2 = $port, !3 = $user, !4 = $pwd, !5 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'RPGDugEAOoSvpJcerHpc'
    4     1        ASSIGN                                                   !1, 'sqld.duapp.com'
    5     2        ASSIGN                                                   !2, 4050
    6     3        ASSIGN                                                   !3, 'ISDddvTQAsC00NmHsOrCcqIL'
    7     4        ASSIGN                                                   !4, 'GMEWfs0973mqDGlgfsz7zVSnEQxqAePM'
   11     5        BEGIN_SILENCE                                    ~11     
          6        INIT_FCALL_BY_NAME                                       'mysql_connect'
          7        ROPE_INIT                                     3  ~13     !1
          8        ROPE_ADD                                      1  ~13     ~13, '%3A'
          9        ROPE_END                                      2  ~12     ~13, !2
         10        SEND_VAL_EX                                              ~12
         11        SEND_VAR_EX                                              !3
         12        SEND_VAR_EX                                              !4
         13        SEND_VAL_EX                                              <true>
         14        DO_FCALL                                      0  $15     
         15        END_SILENCE                                              ~11
         16        ASSIGN                                                   !5, $15
   12    17        BOOL_NOT                                         ~17     !5
         18      > JMPZ                                                     ~17, ->23
   13    19    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         20        DO_FCALL                                      0  $18     
         21        CONCAT                                           ~19     'Connect+Server+Failed%3A+', $18
         22      > EXIT                                                     ~19
   16    23    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         24        SEND_VAR_EX                                              !0
         25        SEND_VAR_EX                                              !5
         26        DO_FCALL                                      0  $20     
         27        BOOL_NOT                                         ~21     $20
         28      > JMPZ                                                     ~21, ->34
   17    29    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         30        SEND_VAR_EX                                              !5
         31        DO_FCALL                                      0  $22     
         32        CONCAT                                           ~23     'Select+Database+Failed%3A+', $22
         33      > EXIT                                                     ~23
   24    34    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         35        SEND_VAL_EX                                              'UPDATE+message+SET+openid%3D1+WHERE+id+%3C+10'
         36        DO_FCALL                                      0          
   25    37        INIT_FCALL                                               'printf'
         38        SEND_VAL                                                 'Updated+records%3A+%25d+'
         39        INIT_FCALL_BY_NAME                                       'mysql_affected_rows'
         40        DO_FCALL                                      0  $25     
         41        SEND_VAR                                                 $25
         42        DO_ICALL                                                 
   26    43        INIT_FCALL_BY_NAME                                       'mysql_query'
         44        SEND_VAL_EX                                              'COMMIT'
         45        DO_FCALL                                      0          
   27    46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.86 ms | 1400 KiB | 15 Q