3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tab['2456_2443'][0]['Taille'] = 38; echo "*".array_search('2456_2443', $tab)."*"; 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 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/febFq
function name:  (null)
number of ops:  21
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        CONCAT                                           ~5      '%2A', $4
          9        CONCAT                                           ~6      ~5, '%2A'
         10        ECHO                                                     ~6
    7    11        INIT_FCALL                                               'array_search'
         12        SEND_VAL                                                 '2456_2443'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        TYPE_CHECK                                  1018          $7
         16      > JMPZ                                                     ~8, ->19
    8    17    >   ECHO                                                     'OK'
         18      > JMP                                                      ->20
   11    19    >   ECHO                                                     'KO'
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.3 ms | 1395 KiB | 15 Q