3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new stdClass(); if(isset($foo->bar->hello->world)) { echo "good"; } else { echo "bad"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uMZP1
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        FETCH_OBJ_IS                                     ~4      !0, 'bar'
          4        FETCH_OBJ_IS                                     ~5      ~4, 'hello'
          5        ISSET_ISEMPTY_PROP_OBJ                                   ~5, 'world'
          6      > JMPZ                                                     ~6, ->9
    6     7    >   ECHO                                                     'good'
          8      > JMP                                                      ->10
    8     9    >   ECHO                                                     'bad'
    9    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.18 ms | 1393 KiB | 13 Q