3v4l.org

run code in 300+ PHP versions simultaneously
<?php $findme = "find me"; $mystring = "find me in my string"; $pos = strpos($mystring, $findme); echo $pos; if ($pos == false) { echo 'not found'; } else { echo 'found'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NnOuo
function name:  (null)
number of ops:  14
compiled vars:  !0 = $findme, !1 = $mystring, !2 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'find+me'
    4     1        ASSIGN                                                   !1, 'find+me+in+my+string'
    6     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    7     7        ECHO                                                     !2
    8     8        BOOL_NOT                                         ~7      !2
          9      > JMPZ                                                     ~7, ->12
    9    10    >   ECHO                                                     'not+found'
         11      > JMP                                                      ->13
   11    12    >   ECHO                                                     'found'
   12    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.87 ms | 1386 KiB | 15 Q