3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.23 ms | 1394 KiB | 15 Q