3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 0 => 'x-ice', 2 => 'x-icenorth', 4 => 'x-icexi2', 4 => 'x-icexi3'); $arrays =$array; foreach($array as $key => $arr) { if(strstr($string, $arr)){ //some code here break; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
Branch analysis from position: 12
filename:       /in/poV4O
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array, !1 = $arrays, !2 = $arr, !3 = $key, !4 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, !0
    5     2      > FE_RESET_R                                       $7      !0, ->12
          3    > > FE_FETCH_R                                       ~8      $7, !2, ->12
          4    >   ASSIGN                                                   !3, ~8
    7     5        INIT_FCALL                                               'strstr'
          6        SEND_VAR                                                 !4
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $10     
          9      > JMPZ                                                     $10, ->11
    9    10    > > JMP                                                      ->12
    5    11    > > JMP                                                      ->3
         12    >   FE_FREE                                                  $7
   11    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.91 ms | 1395 KiB | 15 Q