3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8string = ' sss santé'; $var = 'sante'; $pos = strpos($utf8string, $var); if ($pos!==false) { echo 'rrr'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/pmFnX
function name:  (null)
number of ops:  11
compiled vars:  !0 = $utf8string, !1 = $var, !2 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '++sss++sant%C3%A9'
    5     1        ASSIGN                                                   !1, 'sante'
    6     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    7     7        TYPE_CHECK                                  1018          !2
          8      > JMPZ                                                     ~7, ->10
    8     9    >   ECHO                                                     'rrr'
    9    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.4 ms | 1394 KiB | 15 Q