3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '这是一个长度47个字符的中文字符串'; echo mb_strlen($str); // 17
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XnlIV
function name:  (null)
number of ops:  6
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        DO_ICALL                                         $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.99 ms | 1393 KiB | 15 Q