3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.55 ms | 1399 KiB | 15 Q