3v4l.org

run code in 500+ PHP versions simultaneously
<?php $keyword_array = array_map('trim',explode(',', "москва, питер, саратов")); $text = "здравствуй, москва и питер!"; foreach ($keyword_array as $key) { if (mb_stripos($text, $key) !== false) { echo "Нашел ".$key.PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 22
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 22
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 21
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/aigkh
function name:  (null)
number of ops:  24
compiled vars:  !0 = $keyword_array, !1 = $text, !2 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'array_map'
          1        SEND_VAL                                                     'trim'
          2        INIT_FCALL                                                   'explode'
          3        SEND_VAL                                                     '%2C'
          4        SEND_VAL                                                     '%D0%BC%D0%BE%D1%81%D0%BA%D0%B2%D0%B0%2C+%D0%BF%D0%B8%D1%82%D0%B5%D1%80%2C+%D1%81%D0%B0%D1%80%D0%B0%D1%82%D0%BE%D0%B2'
          5        DO_ICALL                                             $3      
          6        SEND_VAR                                                     $3
          7        DO_ICALL                                             $4      
          8        ASSIGN                                                       !0, $4
    3     9        ASSIGN                                                       !1, '%D0%B7%D0%B4%D1%80%D0%B0%D0%B2%D1%81%D1%82%D0%B2%D1%83%D0%B9%2C+%D0%BC%D0%BE%D1%81%D0%BA%D0%B2%D0%B0+%D0%B8+%D0%BF%D0%B8%D1%82%D0%B5%D1%80%21'
    5    10      > FE_RESET_R                                           $7      !0, ->22
         11    > > FE_FETCH_R                                                   $7, !2, ->22
    7    12    >   INIT_FCALL                                                   'mb_stripos'
         13        SEND_VAR                                                     !1
         14        SEND_VAR                                                     !2
         15        DO_ICALL                                             $8      
         16        TYPE_CHECK                                      1018          $8
         17      > JMPZ                                                         ~9, ->21
    9    18    >   CONCAT                                               ~10     '%D0%9D%D0%B0%D1%88%D0%B5%D0%BB+', !2
         19        CONCAT                                               ~11     ~10, '%0A'
         20        ECHO                                                         ~11
    5    21    > > JMP                                                          ->11
         22    >   FE_FREE                                                      $7
   12    23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.1 ms | 2028 KiB | 16 Q