3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array('subcategory' => array('0' => 18,'1' => 19)); $search = in_array(18,$test['subcategory']); if($search){ echo"da".$search; }
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 = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/4RHQZ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $test, !1 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 18
          3        FETCH_DIM_R                                      ~3      !0, 'subcategory'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7      > JMPZ                                                     !1, ->10
    6     8    >   CONCAT                                           ~6      'da', !1
          9        ECHO                                                     ~6
    7    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.25 ms | 1385 KiB | 15 Q