3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aaa = "AAAHCXLT/FAMILY CARRIER"; //$search = array("XL","XLT"); $keywords = array("XLT"); foreach($keywords as $key) { if(stristr($aaa, $key) !== false) { echo "found ".$key.PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 13
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/jPRTQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $aaa, !1 = $keywords, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'AAAHCXLT%2FFAMILY+CARRIER'
    5     1        ASSIGN                                                   !1, <array>
    7     2      > FE_RESET_R                                       $5      !1, ->14
          3    > > FE_FETCH_R                                               $5, !2, ->14
    8     4    >   INIT_FCALL                                               'stristr'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        TYPE_CHECK                                  1018          $6
          9      > JMPZ                                                     ~7, ->13
    9    10    >   CONCAT                                           ~8      'found+', !2
         11        CONCAT                                           ~9      ~8, '%0A'
         12        ECHO                                                     ~9
    7    13    > > JMP                                                      ->3
         14    >   FE_FREE                                                  $5
   11    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.14 ms | 1395 KiB | 15 Q