3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.62 ms | 1398 KiB | 15 Q