3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = mysqli_connect("103.4.165.83:3306", "mysql", "12345", "db_salikin"); if (!$link) { echo "Error: Unable to connect to MySQL." . PHP_EOL; echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL; echo "Debugging error: " . mysqli_connect_error() . PHP_EOL; exit; } echo "Success: A proper connection to MySQL was made! The my_db database is great." . PHP_EOL; echo "Host information: " . mysqli_get_host_info($link) . PHP_EOL; mysqli_close($link); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/irRL6
function name:  (null)
number of ops:  32
compiled vars:  !0 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysqli_connect'
          1        SEND_VAL_EX                                              '103.4.165.83%3A3306'
          2        SEND_VAL_EX                                              'mysql'
          3        SEND_VAL_EX                                              '12345'
          4        SEND_VAL_EX                                              'db_salikin'
          5        DO_FCALL                                      0  $1      
          6        ASSIGN                                                   !0, $1
    4     7        BOOL_NOT                                         ~3      !0
          8      > JMPZ                                                     ~3, ->21
    5     9    >   ECHO                                                     'Error%3A+Unable+to+connect+to+MySQL.%0A'
    6    10        INIT_FCALL_BY_NAME                                       'mysqli_connect_errno'
         11        DO_FCALL                                      0  $4      
         12        CONCAT                                           ~5      'Debugging+errno%3A+', $4
         13        CONCAT                                           ~6      ~5, '%0A'
         14        ECHO                                                     ~6
    7    15        INIT_FCALL_BY_NAME                                       'mysqli_connect_error'
         16        DO_FCALL                                      0  $7      
         17        CONCAT                                           ~8      'Debugging+error%3A+', $7
         18        CONCAT                                           ~9      ~8, '%0A'
         19        ECHO                                                     ~9
    8    20      > EXIT                                                     
   11    21    >   ECHO                                                     'Success%3A+A+proper+connection+to+MySQL+was+made%21+The+my_db+database+is+great.%0A'
   12    22        INIT_FCALL_BY_NAME                                       'mysqli_get_host_info'
         23        SEND_VAR_EX                                              !0
         24        DO_FCALL                                      0  $10     
         25        CONCAT                                           ~11     'Host+information%3A+', $10
         26        CONCAT                                           ~12     ~11, '%0A'
         27        ECHO                                                     ~12
   14    28        INIT_FCALL_BY_NAME                                       'mysqli_close'
         29        SEND_VAR_EX                                              !0
         30        DO_FCALL                                      0          
   15    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.26 ms | 1395 KiB | 13 Q