3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = '<p>As big a threat as ISIS is, the competition that truly defines the Middle East is the one between Saudi Arabia and Iran. Where do we fit in?<br clear="all"></p>'; $_content = trim(preg_replace(array('#<p[^>]*>#i', '#</p>#i', '#<br[^>]*>#i','#</br>#i'), '', $_content)); echo $_content; if(stripos($_content, '<img ') === false) { echo "\nNO IMG"; } else { echo "\nIMG"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RPt5g
function name:  (null)
number of ops:  21
compiled vars:  !0 = $_content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp%3EAs+big+a+threat+as+ISIS+is%2C+the+competition+that+truly+defines+the+Middle+East+is+the+one+between+Saudi+Arabia+and+Iran.+Where+do+we+fit+in%3F%3Cbr+clear%3D%22all%22%3E%3C%2Fp%3E'
    3     1        INIT_FCALL                                               'trim'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 <array>
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
    4    10        ECHO                                                     !0
    6    11        INIT_FCALL                                               'stripos'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 '%3Cimg+'
         14        DO_ICALL                                         $5      
         15        TYPE_CHECK                                    4          $5
         16      > JMPZ                                                     ~6, ->19
    7    17    >   ECHO                                                     '%0ANO+IMG'
         18      > JMP                                                      ->20
    9    19    >   ECHO                                                     '%0AIMG'
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.25 ms | 1386 KiB | 19 Q