3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tab['2456_2443'][0]['Taille'] = 38; if(array_search('2456_2443', $tab) !== false){ echo "OK"; } else { echo "KO"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PAPNC
function name:  (null)
number of ops:  14
compiled vars:  !0 = $tab
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $1      !0, '2456_2443'
          1        FETCH_DIM_W                                      $2      $1, 0
          2        ASSIGN_DIM                                               $2, 'Taille'
          3        OP_DATA                                                  38
    5     4        INIT_FCALL                                               'array_search'
          5        SEND_VAL                                                 '2456_2443'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        TYPE_CHECK                                  1018          $4
          9      > JMPZ                                                     ~5, ->12
    6    10    >   ECHO                                                     'OK'
         11      > JMP                                                      ->13
    9    12    >   ECHO                                                     'KO'
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.57 ms | 1394 KiB | 15 Q