3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db_host="localhost"; $db_user="root"; $db_pass=""; $db_name="test"; if(!$con=mysqli_connect($db_host, $db_user, $db_pass)) { die("Connection Error. ". mysqli_error()); } mysqli_select_db($db_name, $con); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gpIel
function name:  (null)
number of ops:  21
compiled vars:  !0 = $db_host, !1 = $db_user, !2 = $db_pass, !3 = $db_name, !4 = $con
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'localhost'
    4     1        ASSIGN                                                   !1, 'root'
    5     2        ASSIGN                                                   !2, ''
    7     3        ASSIGN                                                   !3, 'test'
    9     4        INIT_FCALL_BY_NAME                                       'mysqli_connect'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        SEND_VAR_EX                                              !2
          8        DO_FCALL                                      0  $9      
          9        ASSIGN                                           ~10     !4, $9
         10        BOOL_NOT                                         ~11     ~10
         11      > JMPZ                                                     ~11, ->16
   10    12    >   INIT_FCALL_BY_NAME                                       'mysqli_error'
         13        DO_FCALL                                      0  $12     
         14        CONCAT                                           ~13     'Connection+Error.+', $12
         15      > EXIT                                                     ~13
   12    16    >   INIT_FCALL_BY_NAME                                       'mysqli_select_db'
         17        SEND_VAR_EX                                              !3
         18        SEND_VAR_EX                                              !4
         19        DO_FCALL                                      0          
   14    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.93 ms | 1398 KiB | 13 Q