3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarray = Array ( 221 => 'suspended-suspended-1', 691 => 'knee-ir-1', 812 => 'knee-ir-4' ); $row['id']=691; //for example if(isset($myarray[$row['id']]) && strpos($myarray[$row['id']],"ir") !==false){ echo "ir exists on the search index ".$row['id']; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 14
filename:       /in/5CrLW
function name:  (null)
number of ops:  19
compiled vars:  !0 = $myarray, !1 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN_DIM                                               !1, 'id'
          2        OP_DATA                                                  691
   12     3        FETCH_DIM_R                                      ~4      !1, 'id'
          4        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      !0, ~4
          5      > JMPZ_EX                                          ~5      ~5, ->14
          6    >   INIT_FCALL                                               'strpos'
          7        FETCH_DIM_R                                      ~6      !1, 'id'
          8        FETCH_DIM_R                                      ~7      !0, ~6
          9        SEND_VAL                                                 ~7
         10        SEND_VAL                                                 'ir'
         11        DO_ICALL                                         $8      
         12        TYPE_CHECK                                  1018  ~9      $8
         13        BOOL                                             ~5      ~9
         14    > > JMPZ                                                     ~5, ->18
   13    15    >   FETCH_DIM_R                                      ~10     !1, 'id'
         16        CONCAT                                           ~11     'ir+exists+on+the+search+index+', ~10
         17        ECHO                                                     ~11
   14    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.03 ms | 1436 KiB | 14 Q