3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputString = '*ALERT*Domoos detects blabla[blabli]'; $pos1 = strpos($inputString, '*', 0); if ($pos1 == True) { echo 'position' . $pos1; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/FZiZ7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $inputString, !1 = $pos1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2AALERT%2ADomoos+detects+blabla%5Bblabli%5D'
    4     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%2A'
          4        SEND_VAL                                                 0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    6     7        BOOL                                             ~5      !1
          8      > JMPZ                                                     ~5, ->11
    8     9    >   CONCAT                                           ~6      'position', !1
         10        ECHO                                                     ~6
    9    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.68 ms | 1394 KiB | 15 Q