3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'blah' => 1, 'foo' => 2, ]; $key = 'foo'; $val = $arr[$key]['ojppoj'] ?? 53; echo $val; var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tmf8k
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr, !1 = $key, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, 'foo'
    9     2        FETCH_DIM_IS                                     ~5      !0, !1
          3        FETCH_DIM_IS                                     ~6      ~5, 'ojppoj'
          4        COALESCE                                         ~7      ~6
          5        QM_ASSIGN                                        ~7      53
          6        ASSIGN                                                   !2, ~7
   11     7        ECHO                                                     !2
   14     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168 ms | 1394 KiB | 15 Q