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"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/hZO5u
function name:  (null)
number of ops:  8
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, ->7
   10     6    >   ECHO                                                     'was+set'
   11     7    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.75 ms | 1392 KiB | 13 Q