3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mysqli = mysqli("192.168.1.201", "dbmaster", "M4lert@dm1n", "malertDB"); if ($mysqli->connect_errno) { echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/1J1p3
function name:  (null)
number of ops:  16
compiled vars:  !0 = $mysqli
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysqli'
          1        SEND_VAL_EX                                              '192.168.1.201'
          2        SEND_VAL_EX                                              'dbmaster'
          3        SEND_VAL_EX                                              'M4lert%40dm1n'
          4        SEND_VAL_EX                                              'malertDB'
          5        DO_FCALL                                      0  $1      
          6        ASSIGN                                                   !0, $1
    3     7        FETCH_OBJ_R                                      ~3      !0, 'connect_errno'
          8      > JMPZ                                                     ~3, ->15
    4     9    >   FETCH_OBJ_R                                      ~4      !0, 'connect_errno'
         10        CONCAT                                           ~5      'Failed+to+connect+to+MySQL%3A+%28', ~4
         11        CONCAT                                           ~6      ~5, '%29+'
         12        FETCH_OBJ_R                                      ~7      !0, 'connect_error'
         13        CONCAT                                           ~8      ~6, ~7
         14        ECHO                                                     ~8
    5    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.77 ms | 1397 KiB | 13 Q