3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.29 ms | 3245 KiB | 14 Q