3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B {} $a = new stdClass; $b = new B; $b->a = 1; $item='null'; var_dump(array_key_exists($item, $a), array_key_exists('a', $a), array_key_exists('a', $b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4qM7j
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        NEW                                              $6      'B'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
    5     6        ASSIGN_OBJ                                               !1, 'a'
          7        OP_DATA                                                  1
    6     8        ASSIGN                                                   !2, 'null'
    7     9        INIT_FCALL                                               'var_dump'
         10        ARRAY_KEY_EXISTS                                 ~11     !2, !0
         11        SEND_VAL                                                 ~11
         12        ARRAY_KEY_EXISTS                                 ~12     'a', !0
         13        SEND_VAL                                                 ~12
         14        ARRAY_KEY_EXISTS                                 ~13     'a', !1
         15        SEND_VAL                                                 ~13
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.76 ms | 1394 KiB | 15 Q