3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create connection $con=mysqli_connect("example.com","peter","abc123","my_db"); // Check connection if (mysqli_connect_errno($con)) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/NkIJZ
function name:  (null)
number of ops:  16
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
    6     7        INIT_FCALL_BY_NAME                                       'mysqli_connect_errno'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $3      
         10      > JMPZ                                                     $3, ->15
    8    11    >   INIT_FCALL_BY_NAME                                       'mysqli_connect_error'
         12        DO_FCALL                                      0  $4      
         13        CONCAT                                           ~5      'Failed+to+connect+to+MySQL%3A+', $4
         14        ECHO                                                     ~5
   10    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.72 ms | 1393 KiB | 13 Q