3v4l.org

run code in 300+ PHP versions simultaneously
<?php //login.php $db_hostname = 'localhost'; $db_database = 'edgabbmc_db_practice'; $db_username = 'edgabbmc_db'; $db_password = 'Apple2014!'; // Connect to server. $db_server = mysql_connect($db_hostname, $db_username, $db_password) or die("Unable to connect to MySQL: " . mysql_error()); // Select the database. mysql_select_db($db_database) or die("Unable to select database: " . mysql_error()); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 47) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q1Ueb
function name:  (null)
number of ops:  26
compiled vars:  !0 = $db_hostname, !1 = $db_database, !2 = $db_username, !3 = $db_password, !4 = $db_server
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'localhost'
    3     1        ASSIGN                                                   !1, 'edgabbmc_db_practice'
    4     2        ASSIGN                                                   !2, 'edgabbmc_db'
    5     3        ASSIGN                                                   !3, 'Apple2014%21'
    7     4        INIT_FCALL_BY_NAME                                       'mysql_connect'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !2
          7        SEND_VAR_EX                                              !3
          8        DO_FCALL                                      0  $9      
          9        ASSIGN                                           ~10     !4, $9
         10      > JMPNZ_EX                                         ~10     ~10, ->16
    8    11    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         12        DO_FCALL                                      0  $11     
         13        CONCAT                                           ~12     'Unable+to+connect+to+MySQL%3A+', $11
         14      > EXIT                                                     ~12
         15*       BOOL                                             ~10     <true>
   10    16    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         17        SEND_VAR_EX                                              !1
         18        DO_FCALL                                      0  $13     
         19      > JMPNZ_EX                                         ~14     $13, ->25
   11    20    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         21        DO_FCALL                                      0  $15     
         22        CONCAT                                           ~16     'Unable+to+select+database%3A+', $15
         23      > EXIT                                                     ~16
         24*       BOOL                                             ~14     <true>
   12    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.83 ms | 1394 KiB | 13 Q