3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con=mysqli_connect("example.com","peter","abc123","my_db"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/sXgpX
function name:  (null)
number of ops:  15
compiled vars:  !0 = $con
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'mysqli_connect'
          1        SEND_VAL_EX                                              'example.com'
          2        SEND_VAL_EX                                              'peter'
          3        SEND_VAL_EX                                              'abc123'
          4        SEND_VAL_EX                                              'my_db'
          5        DO_FCALL                                      0  $1      
          6        ASSIGN                                                   !0, $1
    5     7        INIT_FCALL_BY_NAME                                       'mysqli_connect_errno'
          8        DO_FCALL                                      0  $3      
          9      > JMPZ                                                     $3, ->14
    6    10    >   INIT_FCALL_BY_NAME                                       'mysqli_connect_error'
         11        DO_FCALL                                      0  $4      
         12        CONCAT                                           ~5      'Failed+to+connect+to+MySQL%3A+', $4
         13        ECHO                                                     ~5
   10    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 1393 KiB | 13 Q