3v4l.org

run code in 500+ PHP versions simultaneously
<?php $b = array(); $c = 456; $a = $b['hoge'] ?? $c; var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dT5RV
function name:  (null)
number of ops:  10
compiled vars:  !0 = $b, !1 = $c, !2 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        ASSIGN                                                       !1, 456
    5     2        FETCH_DIM_IS                                         ~5      !0, 'hoge'
          3        COALESCE                                             ~6      ~5
          4        QM_ASSIGN                                            ~6      !1
          5        ASSIGN                                                       !2, ~6
    6     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !2
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.64 ms | 2683 KiB | 9 Q