3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $wo = '我编织我的衣服'; echo mb_substr($wo,0,2,'UTF-8');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bLISN
function name:  (null)
number of ops:  12
compiled vars:  !0 = $wo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, '%E6%88%91%E7%BC%96%E7%BB%87%E6%88%91%E7%9A%84%E8%A1%A3%E6%9C%8D'
    6     4        INIT_FCALL                                               'mb_substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 2
          8        SEND_VAL                                                 'UTF-8'
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.35 ms | 1394 KiB | 17 Q