3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new stdClass(); $test->whatefer = ['blah' => 'ebook']; $testing = @$test->whatefer['blah']; var_dump($testing); if ($hmm = @$test->whatefer['blah'] && isset($hmm) && $hmm === 'ebook') { echo "yep"; } else { echo "nope"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 20
filename:       /in/fVbWl
function name:  (null)
number of ops:  29
compiled vars:  !0 = $test, !1 = $testing, !2 = $hmm
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    5     3        ASSIGN_OBJ                                               !0, 'whatefer'
          4        OP_DATA                                                  <array>
    7     5        BEGIN_SILENCE                                    ~7      
          6        FETCH_OBJ_R                                      ~8      !0, 'whatefer'
          7        FETCH_DIM_R                                      ~9      ~8, 'blah'
          8        END_SILENCE                                              ~7
          9        ASSIGN                                                   !1, ~9
    9    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   11    13        BEGIN_SILENCE                                    ~12     
         14        FETCH_OBJ_R                                      ~13     !0, 'whatefer'
         15        FETCH_DIM_R                                      ~14     ~13, 'blah'
         16        END_SILENCE                                              ~12
         17      > JMPZ_EX                                          ~14     ~14, ->20
         18    >   ISSET_ISEMPTY_CV                                 ~15     !2
         19        BOOL                                             ~14     ~15
         20    > > JMPZ_EX                                          ~14     ~14, ->23
         21    >   IS_IDENTICAL                                     ~16     !2, 'ebook'
         22        BOOL                                             ~14     ~16
         23    >   ASSIGN                                           ~17     !2, ~14
         24      > JMPZ                                                     ~17, ->27
   12    25    >   ECHO                                                     'yep'
         26      > JMP                                                      ->28
   15    27    >   ECHO                                                     'nope'
   16    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.77 ms | 1396 KiB | 15 Q