3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cnStr = "中"; //utf8的中文 //unicode $code = unpack("H6codes", $cnStr); //汉字 $cnStr = pack("H6", $code['codes']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OKLkc
function name:  (null)
number of ops:  13
compiled vars:  !0 = $cnStr, !1 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E4%B8%AD'
    5     1        INIT_FCALL                                               'unpack'
          2        SEND_VAL                                                 'H6codes'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    8     6        INIT_FCALL                                               'pack'
          7        SEND_VAL                                                 'H6'
          8        FETCH_DIM_R                                      ~5      !1, 'codes'
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !0, $6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.7 ms | 1398 KiB | 17 Q