3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filter = null; if( !empty($filter['online']) or in_array('online', $filter['interest']) ) { echo('a'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 10
filename:       /in/K8SM6
function name:  (null)
number of ops:  13
compiled vars:  !0 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    5     1        ISSET_ISEMPTY_DIM_OBJ                         1  ~2      !0, 'online'
          2        BOOL_NOT                                         ~3      ~2
          3      > JMPNZ_EX                                         ~3      ~3, ->10
          4    >   INIT_FCALL                                               'in_array'
          5        SEND_VAL                                                 'online'
          6        FETCH_DIM_R                                      ~4      !0, 'interest'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        BOOL                                             ~3      $5
         10    > > JMPZ                                                     ~3, ->12
    7    11    >   ECHO                                                     'a'
    8    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.48 ms | 1385 KiB | 15 Q