3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = "1.2.3.4"; $usr = "root"; $pw = ""; $db = "x"; try { $mysqli = new mysqli($host,$usr,$pw,$db); $connected = true; } catch (Exception $e) { echo $e->getMessage(); } echo "x";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 13
Branch analysis from position: 13
2 jumps found. (Code = 107) Position 1 = 14, Position 2 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GNe9f
function name:  (null)
number of ops:  19
compiled vars:  !0 = $host, !1 = $usr, !2 = $pw, !3 = $db, !4 = $mysqli, !5 = $connected, !6 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1.2.3.4'
    3     1        ASSIGN                                                   !1, 'root'
    4     2        ASSIGN                                                   !2, ''
    5     3        ASSIGN                                                   !3, 'x'
    7     4        NEW                                              $11     'mysqli'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        SEND_VAR_EX                                              !2
          8        SEND_VAR_EX                                              !3
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !4, $11
    8    11        ASSIGN                                                   !5, <true>
         12      > JMP                                                      ->17
    9    13  E > > CATCH                                       last         'Exception'
   10    14    >   INIT_METHOD_CALL                                         !6, 'getMessage'
         15        DO_FCALL                                      0  $15     
         16        ECHO                                                     $15
   12    17    >   ECHO                                                     'x'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.64 ms | 1393 KiB | 13 Q