3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.73 ms | 1398 KiB | 15 Q