3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = ['someKey' => 'someValue']; echo $var['someKey']; $wasSet = isset($var['aKey']); if ($wasSet) { echo "was set"; } else { echo "was not set"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5WQ1H
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var, !1 = $wasSet
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_DIM_R                                      ~3      !0, 'someKey'
          2        ECHO                                                     ~3
    7     3        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      !0, 'aKey'
          4        ASSIGN                                                   !1, ~4
    9     5      > JMPZ                                                     !1, ->8
   10     6    >   ECHO                                                     'was+set'
          7      > JMP                                                      ->9
   12     8    >   ECHO                                                     'was+not+set'
   13     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.72 ms | 1384 KiB | 13 Q