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)); } /*至此连接已完全建立,就可对当前数据库进行相应的操作了*/ ?>
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/FZ2t5
function name:  (null)
number of ops:  35
compiled vars:  !0 = $dbname, !1 = $host, !2 = $port, !3 = $user, !4 = $pwd, !5 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'RPGDugEAOoSvpJcerHpc'
    6     1        ASSIGN                                                   !1, 'sqld.duapp.com'
    7     2        ASSIGN                                                   !2, 4050
    8     3        ASSIGN                                                   !3, 'ISDddvTQAsC00NmHsOrCcqIL'
    9     4        ASSIGN                                                   !4, 'GMEWfs0973mqDGlgfsz7zVSnEQxqAePM'
   13     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
   14    17        BOOL_NOT                                         ~17     !5
         18      > JMPZ                                                     ~17, ->23
   15    19    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         20        DO_FCALL                                      0  $18     
         21        CONCAT                                           ~19     'Connect+Server+Failed%3A+', $18
         22      > EXIT                                                     ~19
   18    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
   19    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
   25    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.73 ms | 1395 KiB | 13 Q