3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = [ 'www.yout.com', 'http://stackoverflow.com', 'etc', ]; foreach ($data as $text) { echo $text, PHP_EOL; if (stripos($text, ".com") !== false) { echo "URL Detected", PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
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/MssSb
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data, !1 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    9     1      > FE_RESET_R                                           $3      !0, ->14
          2    > > FE_FETCH_R                                                   $3, !1, ->14
   10     3    >   ECHO                                                         !1
          4        ECHO                                                         '%0A'
   11     5        INIT_FCALL                                                   'stripos'
          6        SEND_VAR                                                     !1
          7        SEND_VAL                                                     '.com'
          8        DO_ICALL                                             $4      
          9        TYPE_CHECK                                      1018          $4
         10      > JMPZ                                                         ~5, ->13
   12    11    >   ECHO                                                         'URL+Detected'
         12        ECHO                                                         '%0A'
    9    13    > > JMP                                                          ->2
         14    >   FE_FREE                                                      $3
   14    15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.06 ms | 2234 KiB | 13 Q