3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strtest = “yyg中文字符yyg”; $pregstr = "/[\x{4e00}-\x{9fa5}]+/u"; if(preg_match($pregstr,$strtest,$matchArray)){ echo $matchArray[0]; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/oEvdG
function name:  (null)
number of ops:  12
compiled vars:  !0 = $strtest, !1 = $pregstr, !2 = $matchArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~3      '%E2%80%9Cyyg%E4%B8%AD%E6%96%87%E5%AD%97%E7%AC%A6yyg%E2%80%9D'
          1        ASSIGN                                                   !0, ~3
    4     2        ASSIGN                                                   !1, '%2F%5B%5Cx%7B4e00%7D-%5Cx%7B9fa5%7D%5D%2B%2Fu'
    6     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !2
          7        DO_ICALL                                         $6      
          8      > JMPZ                                                     $6, ->11
    8     9    >   FETCH_DIM_R                                      ~7      !2, 0
         10        ECHO                                                     ~7
   14    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.08 ms | 1394 KiB | 15 Q