3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; echo $array['test'] ?: 'nope'; echo $array['test2'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/49h0N
function name:  (null)
number of ops:  8
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_DIM_R                                      ~2      !0, 'test'
          2        JMP_SET                                          ~3      ~2, ->4
          3        QM_ASSIGN                                        ~3      'nope'
          4        ECHO                                                     ~3
    6     5        FETCH_DIM_R                                      ~4      !0, 'test2'
          6        ECHO                                                     ~4
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.37 ms | 1392 KiB | 13 Q