3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(preg_match('/^\w+$/', '人1994')); var_dump(preg_match('/^\w+$/', '啊1994'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rNgfi
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'var_dump'
          1        FRAMELESS_ICALL_2                preg_match          ~0      '%2F%5E%5Cw%2B%24%2F', '%E4%BA%BA1994'
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
    3     4        INIT_FCALL                                                   'var_dump'
          5        FRAMELESS_ICALL_2                preg_match          ~2      '%2F%5E%5Cw%2B%24%2F', '%E5%95%8A1994'
          6        SEND_VAL                                                     ~2
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
147.85 ms | 3241 KiB | 14 Q