3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '这是一个长度47个字符的中文字符串'; echo mb_strlen($str, 'UTF-8'); // 17
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/irP5f
function name:  (null)
number of ops:  7
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E8%BF%99%E6%98%AF%E4%B8%80%E4%B8%AA%E9%95%BF%E5%BA%A647%E4%B8%AA%E5%AD%97%E7%AC%A6%E7%9A%84%E4%B8%AD%E6%96%87%E5%AD%97%E7%AC%A6%E4%B8%B2'
    4     1        INIT_FCALL                                               'mb_strlen'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'UTF-8'
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.87 ms | 1398 KiB | 15 Q