3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8string = '��Email;Envoy�;Ouverture;Lien n�1;Lien n�2;D�sabonnement '; $var = 'test'; $pos = strpos($utf8string, $var); echo $pos; if ($pos===false) { echo "error"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/lTqbL
function name:  (null)
number of ops:  12
compiled vars:  !0 = $utf8string, !1 = $var, !2 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%EF%BF%BD%EF%BF%BDEmail%3BEnvoy%EF%BF%BD%3BOuverture%3BLien+n%EF%BF%BD1%3BLien+n%EF%BF%BD2%3BD%EF%BF%BDsabonnement+'
    5     1        ASSIGN                                                   !1, 'test'
    6     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    7     7        ECHO                                                     !2
    8     8        TYPE_CHECK                                    4          !2
          9      > JMPZ                                                     ~7, ->11
    9    10    >   ECHO                                                     'error'
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.4 ms | 1394 KiB | 15 Q