3v4l.org

run code in 300+ PHP versions simultaneously
<?php $findme = "find me"; $mystring = "find me in my string"; $pos = strpos($mystring, $findme); if ($pos === false) { echo 'not found'; } else { echo 'found'; }
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 = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nnf74
function name:  (null)
number of ops:  13
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        TYPE_CHECK                                    4          !2
          8      > JMPZ                                                     ~7, ->11
    8     9    >   ECHO                                                     'not+found'
         10      > JMP                                                      ->12
   10    11    >   ECHO                                                     'found'
   11    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.52 ms | 1394 KiB | 15 Q