3v4l.org

run code in 300+ PHP versions simultaneously
<?php $item = "أهلا وسهلا بكم"; $search = "وسهلا"; if (strpos($item, $search)){ echo "founded"; }else { echo "not founded"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C07o8
function name:  (null)
number of ops:  11
compiled vars:  !0 = $item, !1 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D8%A3%D9%87%D9%84%D8%A7+%D9%88%D8%B3%D9%87%D9%84%D8%A7+%D8%A8%D9%83%D9%85'
    4     1        ASSIGN                                                   !1, '%D9%88%D8%B3%D9%87%D9%84%D8%A7'
    5     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->9
    6     7    >   ECHO                                                     'founded'
    5     8      > JMP                                                      ->10
    8     9    >   ECHO                                                     'not+founded'
    9    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.62 ms | 996 KiB | 14 Q