3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.14 ms | 1394 KiB | 15 Q