3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = ""; $password = ""; $hostname = "test:test@192.168.1.10/test"; $dbhandle = new mysqli($hostname, $username, $password,"test") or die("Unable to connect to MySQL"); echo "Connected to MySQL<br>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A0efj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $username, !1 = $password, !2 = $hostname, !3 = $dbhandle
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, ''
    5     2        ASSIGN                                                   !2, 'test%3Atest%40192.168.1.10%2Ftest'
    6     3        NEW                                              $7      'mysqli'
          4        SEND_VAR_EX                                              !2
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        SEND_VAL_EX                                              'test'
          8        DO_FCALL                                      0          
          9        ASSIGN                                           ~9      !3, $7
         10      > JMPNZ_EX                                         ~9      ~9, ->13
    7    11    > > EXIT                                                     'Unable+to+connect+to+MySQL'
         12*       BOOL                                             ~9      <true>
    8    13    >   ECHO                                                     'Connected+to+MySQL%3Cbr%3E'
   10    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.2 ms | 933 KiB | 14 Q