3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.3 ms | 1397 KiB | 13 Q