3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.44 ms | 1394 KiB | 13 Q