3v4l.org

run code in 500+ 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 = 3, Position 2 = 7
Branch analysis from position: 3
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: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/liWY8
function name:  (null)
number of ops:  11
compiled vars:  !0 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'WiktorStribi%C5%BCew'
    4     1        FRAMELESS_ICALL_2                preg_match          ~2      '%7E%5E%5Cp%7BLatin%7D%2B%24%7Eu', !0
          2      > JMPZ                                                         ~2, ->7
    5     3    >   NOP                                                          
          4        FAST_CONCAT                                          ~3      !0, '+is+valid%21'
          5        ECHO                                                         ~3
    4     6      > JMP                                                          ->10
    7     7    >   NOP                                                          
          8        FAST_CONCAT                                          ~4      !0, '+is+invalid%21'
          9        ECHO                                                         ~4
    8    10    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
206.48 ms | 1523 KiB | 8 Q