3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('aaa'=>'aaa', 'bbb'=>'bbb'); $k = 'bbb'; if(array_key_exists($k,$arr)) $arr[$k] = 'ccc'; print_r($arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/lGWt1
function name:  (null)
number of ops:  10
compiled vars:  !0 = $arr, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'bbb'
    4     2        ARRAY_KEY_EXISTS                                         !1, !0
          3      > JMPZ                                                     ~4, ->6
    5     4    >   ASSIGN_DIM                                               !0, !1
          5        OP_DATA                                                  'ccc'
    6     6    >   INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.21 ms | 1394 KiB | 15 Q