3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_STRICT); $header = array('test'); if (!empty($header[0]['class'])) { echo 'set'; } else { echo 'not set'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rSX8S
function name:  (null)
number of ops:  12
compiled vars:  !0 = $header
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 2048
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, <array>
    6     4        FETCH_DIM_IS                                     ~3      !0, 0
          5        ISSET_ISEMPTY_DIM_OBJ                         1  ~4      ~3, 'class'
          6        BOOL_NOT                                         ~5      ~4
          7      > JMPZ                                                     ~5, ->10
    7     8    >   ECHO                                                     'set'
          9      > JMP                                                      ->11
    9    10    >   ECHO                                                     'not+set'
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.02 ms | 1394 KiB | 15 Q