3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('aaa'=>'aaa', 'bcbb'=>'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 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/ZAMAp
function name:  (null)
number of ops:  11
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                                 ~4      !1, !0
          3        BOOL_NOT                                         ~5      ~4
          4      > JMPZ                                                     ~5, ->7
    5     5    >   ASSIGN_DIM                                               !0, !1
          6        OP_DATA                                                  'ccc'
    6     7    >   INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.29 ms | 1394 KiB | 15 Q