3v4l.org

run code in 300+ PHP versions simultaneously
<?php $String = 'IWantToSolveThisProblem!!'; $needle = array('want', 'solve'); foreach ($needle as $value) { $res = stripos($String, $value,0); if($res !==false){ echo 'found'; } else { echo 'not found'; }}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/IFAbU
function name:  (null)
number of ops:  18
compiled vars:  !0 = $String, !1 = $needle, !2 = $value, !3 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'IWantToSolveThisProblem%21%21'
    4     1        ASSIGN                                                   !1, <array>
    6     2      > FE_RESET_R                                       $6      !1, ->16
          3    > > FE_FETCH_R                                               $6, !2, ->16
    8     4    >   INIT_FCALL                                               'stripos'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !2
          7        SEND_VAL                                                 0
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !3, $7
    9    10        TYPE_CHECK                                  1018          !3
         11      > JMPZ                                                     ~9, ->14
   11    12    >   ECHO                                                     'found'
         13      > JMP                                                      ->15
   14    14    >   ECHO                                                     'not+found'
    6    15    > > JMP                                                      ->3
         16    >   FE_FREE                                                  $6
   14    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.15 ms | 1395 KiB | 15 Q