3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = "WiktorStribiżew"; if(preg_match("~^\p{Latin}+$~u", $key)){ echo "$key is valid!"; } else { echo "$key is invalid!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/liWY8
function name:  (null)
number of ops:  14
compiled vars:  !0 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'WiktorStribi%C5%BCew'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%5E%5Cp%7BLatin%7D%2B%24%7Eu'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->10
    5     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~3      !0, '+is+valid%21'
          8        ECHO                                                     ~3
          9      > JMP                                                      ->13
    7    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~4      !0, '+is+invalid%21'
         12        ECHO                                                     ~4
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.74 ms | 1399 KiB | 15 Q