3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.18 ms | 1392 KiB | 13 Q