3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_export(isset($array['does']['not']['exist']) ? $array['does']['not']['exist'] : 'nope'); echo "\n---\n"; var_export(isset($obj->does->not->exist) ? $obj->does->not->exist : 'nope'); echo "\n---\n"; var_export(isset($obj->does[123]->not->exist[678]['foo']) ? $obj->does[123]->not->exist[678]['foo'] : 'nope');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 44
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 44
Branch analysis from position: 36
Branch analysis from position: 44
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
Branch analysis from position: 24
filename:       /in/AbTtH3
function name:  (null)
number of ops:  48
compiled vars:  !0 = $array, !1 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_export'
          1        FETCH_DIM_IS                                         ~2      !0, 'does'
          2        FETCH_DIM_IS                                         ~3      ~2, 'not'
          3        ISSET_ISEMPTY_DIM_OBJ                             0          ~3, 'exist'
          4      > JMPZ                                                         ~4, ->10
          5    >   FETCH_DIM_R                                          ~5      !0, 'does'
          6        FETCH_DIM_R                                          ~6      ~5, 'not'
          7        FETCH_DIM_R                                          ~7      ~6, 'exist'
          8        QM_ASSIGN                                            ~8      ~7
          9      > JMP                                                          ->11
         10    >   QM_ASSIGN                                            ~8      'nope'
         11    >   SEND_VAL                                                     ~8
         12        DO_ICALL                                                     
    5    13        ECHO                                                         '%0A---%0A'
    7    14        INIT_FCALL                                                   'var_export'
         15        FETCH_OBJ_IS                                         ~10     !1, 'does'
         16        FETCH_OBJ_IS                                         ~11     ~10, 'not'
         17        ISSET_ISEMPTY_PROP_OBJ                                       ~11, 'exist'
         18      > JMPZ                                                         ~12, ->24
         19    >   FETCH_OBJ_R                                          ~13     !1, 'does'
         20        FETCH_OBJ_R                                          ~14     ~13, 'not'
         21        FETCH_OBJ_R                                          ~15     ~14, 'exist'
         22        QM_ASSIGN                                            ~16     ~15
         23      > JMP                                                          ->25
         24    >   QM_ASSIGN                                            ~16     'nope'
         25    >   SEND_VAL                                                     ~16
         26        DO_ICALL                                                     
    9    27        ECHO                                                         '%0A---%0A'
   11    28        INIT_FCALL                                                   'var_export'
         29        FETCH_OBJ_IS                                         ~18     !1, 'does'
         30        FETCH_DIM_IS                                         ~19     ~18, 123
         31        FETCH_OBJ_IS                                         ~20     ~19, 'not'
         32        FETCH_OBJ_IS                                         ~21     ~20, 'exist'
         33        FETCH_DIM_IS                                         ~22     ~21, 678
         34        ISSET_ISEMPTY_DIM_OBJ                             0          ~22, 'foo'
         35      > JMPZ                                                         ~23, ->44
         36    >   FETCH_OBJ_R                                          ~24     !1, 'does'
         37        FETCH_DIM_R                                          ~25     ~24, 123
         38        FETCH_OBJ_R                                          ~26     ~25, 'not'
         39        FETCH_OBJ_R                                          ~27     ~26, 'exist'
         40        FETCH_DIM_R                                          ~28     ~27, 678
         41        FETCH_DIM_R                                          ~29     ~28, 'foo'
         42        QM_ASSIGN                                            ~30     ~29
         43      > JMP                                                          ->45
         44    >   QM_ASSIGN                                            ~30     'nope'
         45    >   SEND_VAL                                                     ~30
         46        DO_ICALL                                                     
         47      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
135.86 ms | 3341 KiB | 14 Q