3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.65 ms | 520 KiB | 10 Q