3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8string = 'Email;Envoyé;Ouverture;Lien n°1;Désabonnement'; $var = 'Envo'; $pos = strpos($utf8string, $var); if ($pos===false) { echo "error"; }
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/8jiii
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, 'Email%3BEnvoy%C3%A9%3BOuverture%3BLien+n%C2%B01%3BD%C3%A9sabonnement'
    5     1        ASSIGN                                                   !1, 'Envo'
    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                                    4          !2
          8      > JMPZ                                                     ~7, ->10
    8     9    >   ECHO                                                     'error'
    9    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.52 ms | 1394 KiB | 15 Q