3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array('subcategory' => array('0' => 18,'1' => 19)); $search = in_array(17,$test['subcategory']); if($search){ echo"da"; } print_r($search);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/o0WFf
function name:  (null)
number of ops:  13
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                                                 17
          3        FETCH_DIM_R                                      ~3      !0, 'subcategory'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7      > JMPZ                                                     !1, ->9
    6     8    >   ECHO                                                     'da'
    8     9    >   INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.2 ms | 1394 KiB | 17 Q