3v4l.org

run code in 300+ PHP versions simultaneously
<?php $instances_a = array( 'hello' => 'world' ); $instances_ao = new ArrayObject( $instances_a ); $instances_ai = new ArrayIterator( $instances_a ); foreach ( array( $instances_a, $instances_ao, $instances_ai ) as $instances ) { if ( ( is_array( $instances ) && array_key_exists( 'hello', $instances ) ) || isset( $instances[ 'hello' ] ) ) { echo "Exists\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 24
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 24
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 47) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 23
Branch analysis from position: 21
Branch analysis from position: 18
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/5DDEZ
function name:  (null)
number of ops:  26
compiled vars:  !0 = $instances_a, !1 = $instances_ao, !2 = $instances_ai, !3 = $instances
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $5      'ArrayObject'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
    5     5        NEW                                              $8      'ArrayIterator'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $8
    7     9        INIT_ARRAY                                       ~11     !0
         10        ADD_ARRAY_ELEMENT                                ~11     !1
         11        ADD_ARRAY_ELEMENT                                ~11     !2
         12      > FE_RESET_R                                       $12     ~11, ->24
         13    > > FE_FETCH_R                                               $12, !3, ->24
    8    14    >   TYPE_CHECK                                  128  ~13     !3
         15      > JMPZ_EX                                          ~13     ~13, ->18
         16    >   ARRAY_KEY_EXISTS                                 ~14     'hello', !3
         17        BOOL                                             ~13     ~14
         18    > > JMPNZ_EX                                         ~13     ~13, ->21
         19    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~15     !3, 'hello'
         20        BOOL                                             ~13     ~15
         21    > > JMPZ                                                     ~13, ->23
    9    22    >   ECHO                                                     'Exists%0A'
    7    23    > > JMP                                                      ->13
         24    >   FE_FREE                                                  $12
   11    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.86 ms | 1449 KiB | 13 Q