3v4l.org

run code in 300+ PHP versions simultaneously
<?php $servername = "mysql.lab.imgd.ca"; $username = "n0203955_abhiram"; $password = "Ashaj3955"; $dbname = "n0203955_quickscope"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; $conn->close(); ?> <?php $servername = "mysql.lab.imgd.ca"; $username = "n0203955_abhiram"; $password = "Ashaj3955"; $dbname = "n0203955_quickscope"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; $conn->close(); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 35
Branch analysis from position: 32
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SLMTh
function name:  (null)
number of ops:  39
compiled vars:  !0 = $servername, !1 = $username, !2 = $password, !3 = $dbname, !4 = $conn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'mysql.lab.imgd.ca'
    3     1        ASSIGN                                                   !1, 'n0203955_abhiram'
    4     2        ASSIGN                                                   !2, 'Ashaj3955'
    5     3        ASSIGN                                                   !3, 'n0203955_quickscope'
    8     4        NEW                                              $9      'mysqli'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        SEND_VAR_EX                                              !2
          8        SEND_VAR_EX                                              !3
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !4, $9
   11    11        FETCH_OBJ_R                                      ~12     !4, 'connect_error'
         12      > JMPZ                                                     ~12, ->16
   12    13    >   FETCH_OBJ_R                                      ~13     !4, 'connect_error'
         14        CONCAT                                           ~14     'Connection+failed%3A+', ~13
         15      > EXIT                                                     ~14
   14    16    >   ECHO                                                     'Connected+successfully'
   15    17        INIT_METHOD_CALL                                         !4, 'close'
         18        DO_FCALL                                      0          
   18    19        ASSIGN                                                   !0, 'mysql.lab.imgd.ca'
   19    20        ASSIGN                                                   !1, 'n0203955_abhiram'
   20    21        ASSIGN                                                   !2, 'Ashaj3955'
   21    22        ASSIGN                                                   !3, 'n0203955_quickscope'
   24    23        NEW                                              $20     'mysqli'
         24        SEND_VAR_EX                                              !0
         25        SEND_VAR_EX                                              !1
         26        SEND_VAR_EX                                              !2
         27        SEND_VAR_EX                                              !3
         28        DO_FCALL                                      0          
         29        ASSIGN                                                   !4, $20
   27    30        FETCH_OBJ_R                                      ~23     !4, 'connect_error'
         31      > JMPZ                                                     ~23, ->35
   28    32    >   FETCH_OBJ_R                                      ~24     !4, 'connect_error'
         33        CONCAT                                           ~25     'Connection+failed%3A+', ~24
         34      > EXIT                                                     ~25
   30    35    >   ECHO                                                     'Connected+successfully'
   31    36        INIT_METHOD_CALL                                         !4, 'close'
         37        DO_FCALL                                      0          
   32    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.55 ms | 1453 KiB | 13 Q