3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = 'Test humble request we are not spammers'; $strings = [ 'humble request we are not spammers' => '"Humble request we are not spammers." Yes you are spammers! We don\'t outsource.' ]; foreach ($strings as $search => $respond) { if (\stripos($body, $search) !== false) { if (!\headers_sent()) { \header("Content-Type: text/plain;charset=UTF-8"); } die($respond); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 20
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 20
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/6QvvZ
function name:  (null)
number of ops:  22
compiled vars:  !0 = $body, !1 = $strings, !2 = $respond, !3 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Test+humble+request+we+are+not+spammers'
    4     1        ASSIGN                                                   !1, <array>
    9     2      > FE_RESET_R                                       $6      !1, ->20
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->20
          4    >   ASSIGN                                                   !3, ~7
   10     5        INIT_FCALL                                               'stripos'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !3
          8        DO_ICALL                                         $9      
          9        TYPE_CHECK                                  1018          $9
         10      > JMPZ                                                     ~10, ->19
   11    11    >   INIT_FCALL                                               'headers_sent'
         12        DO_ICALL                                         $11     
         13        BOOL_NOT                                         ~12     $11
         14      > JMPZ                                                     ~12, ->18
   12    15    >   INIT_FCALL                                               'header'
         16        SEND_VAL                                                 'Content-Type%3A+text%2Fplain%3Bcharset%3DUTF-8'
         17        DO_ICALL                                                 
   14    18    > > EXIT                                                     !2
    9    19    > > JMP                                                      ->3
         20    >   FE_FREE                                                  $6
   16    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.98 ms | 1387 KiB | 19 Q