3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Logo exists $logo = stdClass(); $logo->info = array('logo' => 'test'); if (isset($nologo->info['logo']) && !empty($nologo->info['logo'])) { var_dump($nologo); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 12
filename:       /in/0njI5
function name:  (null)
number of ops:  17
compiled vars:  !0 = $logo, !1 = $nologo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'stdClass'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, 'info'
          4        OP_DATA                                                  <array>
    7     5        FETCH_OBJ_IS                                     ~5      !1, 'info'
          6        ISSET_ISEMPTY_DIM_OBJ                         0  ~6      ~5, 'logo'
          7      > JMPZ_EX                                          ~6      ~6, ->12
          8    >   FETCH_OBJ_IS                                     ~7      !1, 'info'
          9        ISSET_ISEMPTY_DIM_OBJ                         1  ~8      ~7, 'logo'
         10        BOOL_NOT                                         ~9      ~8
         11        BOOL                                             ~6      ~9
         12    > > JMPZ                                                     ~6, ->16
    8    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
    9    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.37 ms | 1395 KiB | 15 Q