3v4l.org

run code in 300+ PHP versions simultaneously
<? define('DB', '1'); //MYSQLI Verbindung zur Datenbank $mysqli = new mysqli_connect("rdbms.strato.de", "U922826", "peru1999!", "DB922826"); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } //printf("Initial character set: %s\n", mysqli_character_set_name($mysqli)); if (!mysqli_set_charset($mysqli, "utf8")) { printf("Error loading character set utf8: %s\n", mysqli_error($mysqli)); exit(); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 35
Branch analysis from position: 27
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bnGWH
function name:  (null)
number of ops:  36
compiled vars:  !0 = $mysqli
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'DB'
          2        SEND_VAL                                                 '1'
          3        DO_ICALL                                                 
    5     4        NEW                                              $2      'mysqli_connect'
          5        SEND_VAL_EX                                              'rdbms.strato.de'
          6        SEND_VAL_EX                                              'U922826'
          7        SEND_VAL_EX                                              'peru1999%21'
          8        SEND_VAL_EX                                              'DB922826'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $2
    7    11        INIT_FCALL_BY_NAME                                       'mysqli_connect_errno'
         12        DO_FCALL                                      0  $5      
         13      > JMPZ                                                     $5, ->21
    8    14    >   INIT_FCALL                                               'printf'
         15        SEND_VAL                                                 'Connect+failed%3A+%25s%0A'
         16        INIT_FCALL_BY_NAME                                       'mysqli_connect_error'
         17        DO_FCALL                                      0  $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
    9    20      > EXIT                                                     
   13    21    >   INIT_FCALL_BY_NAME                                       'mysqli_set_charset'
         22        SEND_VAR_EX                                              !0
         23        SEND_VAL_EX                                              'utf8'
         24        DO_FCALL                                      0  $8      
         25        BOOL_NOT                                         ~9      $8
         26      > JMPZ                                                     ~9, ->35
   14    27    >   INIT_FCALL                                               'printf'
         28        SEND_VAL                                                 'Error+loading+character+set+utf8%3A+%25s%0A'
         29        INIT_FCALL_BY_NAME                                       'mysqli_error'
         30        SEND_VAR_EX                                              !0
         31        DO_FCALL                                      0  $10     
         32        SEND_VAR                                                 $10
         33        DO_ICALL                                                 
   15    34      > EXIT                                                     
   17    35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.63 ms | 1388 KiB | 17 Q