3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = 'testaa1-_as32เชื่อว่าต้องมีหลายคนที่ไม่ค่อยได้'; if (preg_match('~^[\w\p{Thai}-]+$~u', $s)) { echo "Valid!"; } else { echo "Invalid!"; } $s = '@.testaa1-_as32เชื่อว่าต้องมีหลายคนที่ไม่ค่อยได้'; if (preg_match('~^[\w\p{Thai}-]+$~u', $s)) { echo "\nValid!"; } else { echo "\nInvalid!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
Branch analysis from position: 11
filename:       /in/4hB9e
function name:  (null)
number of ops:  13
compiled vars:  !0 = $s
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'testaa1-_as32%E0%B9%80%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B8%A1%E0%B8%B5%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2%E0%B8%84%E0%B8%99%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%84%E0%B9%88%E0%B8%AD%E0%B8%A2%E0%B9%84%E0%B8%94%E0%B9%89'
    4     1        FRAMELESS_ICALL_2                preg_match          ~2      '%7E%5E%5B%5Cw%5Cp%7BThai%7D-%5D%2B%24%7Eu', !0
          2      > JMPZ                                                         ~2, ->5
    5     3    >   ECHO                                                         'Valid%21'
    4     4      > JMP                                                          ->6
    7     5    >   ECHO                                                         'Invalid%21'
   10     6    >   ASSIGN                                                       !0, '%40.testaa1-_as32%E0%B9%80%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B8%A1%E0%B8%B5%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2%E0%B8%84%E0%B8%99%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%84%E0%B9%88%E0%B8%AD%E0%B8%A2%E0%B9%84%E0%B8%94%E0%B9%89'
   11     7        FRAMELESS_ICALL_2                preg_match          ~4      '%7E%5E%5B%5Cw%5Cp%7BThai%7D-%5D%2B%24%7Eu', !0
          8      > JMPZ                                                         ~4, ->11
   12     9    >   ECHO                                                         '%0AValid%21'
   11    10      > JMP                                                          ->12
   14    11    >   ECHO                                                         '%0AInvalid%21'
   15    12    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.95 ms | 3308 KiB | 13 Q