3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "编程"; if (preg_match("/^[\x{4e00}-\x{9fa5}]+$/u",$str)) { print("该字符串全部是中文"); } else { print("该字符串不全部是中文"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h4O8b
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E7%BC%96%E7%A8%8B'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%5B%5Cx%7B4e00%7D-%5Cx%7B9fa5%7D%5D%2B%24%2Fu'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->8
    4     6    >   ECHO                                                     '%E8%AF%A5%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%85%A8%E9%83%A8%E6%98%AF%E4%B8%AD%E6%96%87'
          7      > JMP                                                      ->9
    6     8    >   ECHO                                                     '%E8%AF%A5%E5%AD%97%E7%AC%A6%E4%B8%B2%E4%B8%8D%E5%85%A8%E9%83%A8%E6%98%AF%E4%B8%AD%E6%96%87'
    7     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.03 ms | 1394 KiB | 15 Q