3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = "test"; $password = "test"; $hostname = "192.168.1.10"; $dbhandle = mysqli($hostname, $username, $password) or die("Unable to connect to MySQL"); echo "Connected to MySQL<br>"; //select a database to work with $selected = mysql_select_db("users",$dbhandle) or die("Could not select examples"); ?>
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
2 jumps found. (Code = 47) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FZ0s3
function name:  (null)
number of ops:  22
compiled vars:  !0 = $username, !1 = $password, !2 = $hostname, !3 = $dbhandle, !4 = $selected
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        INIT_FCALL_BY_NAME                                       'mysqli'
          4        SEND_VAR_EX                                              !2
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $8      
          8        ASSIGN                                           ~9      !3, $8
          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'
   11    13        INIT_FCALL_BY_NAME                                       'mysql_select_db'
         14        SEND_VAL_EX                                              'users'
         15        SEND_VAR_EX                                              !3
         16        DO_FCALL                                      0  $10     
         17        ASSIGN                                           ~11     !4, $10
         18      > JMPNZ_EX                                         ~11     ~11, ->21
   12    19    > > EXIT                                                     'Could+not+select+examples'
         20*       BOOL                                             ~11     <true>
   13    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.19 ms | 1394 KiB | 13 Q