3v4l.org

run code in 300+ PHP versions simultaneously
<?php define ("db_user", "*"); define ("db_pswd", "*"); define ("db_host", "*"); define ("db_name", "*"); $dbconnect = mysql_connect(db_host, db_user, db_pswd, db_name); if (!$dbconnect) { die ("Error: connection to databese failed."); } echo "You have successfully connected to the databese"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2T60a
function name:  (null)
number of ops:  32
compiled vars:  !0 = $dbconnect
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'db_user'
          2        SEND_VAL                                                 '%2A'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'db_pswd'
          6        SEND_VAL                                                 '%2A'
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'define'
          9        SEND_VAL                                                 'db_host'
         10        SEND_VAL                                                 '%2A'
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'define'
         13        SEND_VAL                                                 'db_name'
         14        SEND_VAL                                                 '%2A'
         15        DO_ICALL                                                 
    8    16        INIT_FCALL_BY_NAME                                       'mysql_connect'
         17        FETCH_CONSTANT                                   ~5      'db_host'
         18        SEND_VAL_EX                                              ~5
         19        FETCH_CONSTANT                                   ~6      'db_user'
         20        SEND_VAL_EX                                              ~6
         21        FETCH_CONSTANT                                   ~7      'db_pswd'
         22        SEND_VAL_EX                                              ~7
         23        FETCH_CONSTANT                                   ~8      'db_name'
         24        SEND_VAL_EX                                              ~8
         25        DO_FCALL                                      0  $9      
         26        ASSIGN                                                   !0, $9
   10    27        BOOL_NOT                                         ~11     !0
         28      > JMPZ                                                     ~11, ->30
   12    29    > > EXIT                                                     'Error%3A+connection+to+databese+failed.'
   15    30    >   ECHO                                                     'You+have+successfully+connected+to+the+databese'
   17    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.44 ms | 999 KiB | 14 Q