3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array['key'] ??= 1; if (!isset($array['key'])) { $array['key'] = 1; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/J1roB
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_IS                                     ~1      !0, 'key'
          1        COALESCE                                         ~2      ~1
          2        ASSIGN_DIM                                       ~3      !0, 'key'
          3        OP_DATA                                                  1
          4        QM_ASSIGN                                        ~2      ~3
          5        FREE                                                     ~2
    4     6        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      !0, 'key'
          7        BOOL_NOT                                         ~5      ~4
          8      > JMPZ                                                     ~5, ->11
    5     9    >   ASSIGN_DIM                                               !0, 'key'
         10        OP_DATA                                                  1
    6    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.09 ms | 1392 KiB | 13 Q