3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.34 ms | 1394 KiB | 15 Q