3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db_url = "mysqli://USER:PASSWORD@localhost/some_database"; $db_conn = (!is_array($db_url)) ? $db_url : (isset($db_url["default"]) ? $db_url["default"] : NULL); echo var_export($db_conn) . "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tEeO6
function name:  (null)
number of ops:  20
compiled vars:  !0 = $db_url, !1 = $db_conn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'mysqli%3A%2F%2FUSER%3APASSWORD%40localhost%2Fsome_database'
    3     1        TYPE_CHECK                                  128  ~3      !0
          2        BOOL_NOT                                         ~4      ~3
          3      > JMPZ                                                     ~4, ->6
          4    >   QM_ASSIGN                                        ~5      !0
          5      > JMP                                                      ->13
          6    >   ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'default'
          7      > JMPZ                                                     ~6, ->11
          8    >   FETCH_DIM_R                                      ~7      !0, 'default'
          9        QM_ASSIGN                                        ~8      ~7
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~8      null
         12    >   QM_ASSIGN                                        ~5      ~8
         13    >   ASSIGN                                                   !1, ~5
    4    14        INIT_FCALL                                               'var_export'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $10     
         17        CONCAT                                           ~11     $10, '%0A'
         18        ECHO                                                     ~11
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.21 ms | 1395 KiB | 15 Q