3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = "XXX_5878789@bulgaricommunication.com"; $search = "XXXX_"; if (strpos($email, $search, 0) === 0){ echo "ciao"; } else {echo "bau";}
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/n0DgD
function name:  (null)
number of ops:  13
compiled vars:  !0 = $email, !1 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'XXX_5878789%40bulgaricommunication.com'
    4     1        ASSIGN                                                   !1, 'XXXX_'
    6     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 0
          6        DO_ICALL                                         $4      
          7        IS_IDENTICAL                                             $4, 0
          8      > JMPZ                                                     ~5, ->11
    7     9    >   ECHO                                                     'ciao'
         10      > JMP                                                      ->12
    8    11    >   ECHO                                                     'bau'
         12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.91 ms | 1394 KiB | 15 Q