3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj1 = new stdClass(); $obj1->permission = "public_profile"; $obj1->status = "granted"; $obj2 = new stdClass(); $obj2->permission = "email"; $obj2->status = "granted"; $arrayResult = array($obj1, $obj2); var_dump($arrayResult); foreach($arrayResult as $key => $obj){ if(property_exists($obj, "email")){ echo "\$arrayResult[$key]->email exists\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 33
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 33
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 32
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 32
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/NFLVq
function name:  (null)
number of ops:  35
compiled vars:  !0 = $obj1, !1 = $obj2, !2 = $arrayResult, !3 = $obj, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $5      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
    4     3        ASSIGN_OBJ                                               !0, 'permission'
          4        OP_DATA                                                  'public_profile'
    5     5        ASSIGN_OBJ                                               !0, 'status'
          6        OP_DATA                                                  'granted'
    7     7        NEW                                              $10     'stdClass'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $10
    8    10        ASSIGN_OBJ                                               !1, 'permission'
         11        OP_DATA                                                  'email'
    9    12        ASSIGN_OBJ                                               !1, 'status'
         13        OP_DATA                                                  'granted'
   11    14        INIT_ARRAY                                       ~15     !0
         15        ADD_ARRAY_ELEMENT                                ~15     !1
         16        ASSIGN                                                   !2, ~15
   13    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
   15    20      > FE_RESET_R                                       $18     !2, ->33
         21    > > FE_FETCH_R                                       ~19     $18, !3, ->33
         22    >   ASSIGN                                                   !4, ~19
   16    23        INIT_FCALL                                               'property_exists'
         24        SEND_VAR                                                 !3
         25        SEND_VAL                                                 'email'
         26        DO_ICALL                                         $21     
         27      > JMPZ                                                     $21, ->32
   17    28    >   ROPE_INIT                                     3  ~23     '%24arrayResult%5B'
         29        ROPE_ADD                                      1  ~23     ~23, !4
         30        ROPE_END                                      2  ~22     ~23, '%5D-%3Eemail+exists%0A'
         31        ECHO                                                     ~22
   15    32    > > JMP                                                      ->21
         33    >   FE_FREE                                                  $18
   19    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.62 ms | 1396 KiB | 17 Q