3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string="這是wibibi測試字串"; echo mb_strlen( $string,0,8,"utf-8");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VuhjA
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E9%80%99%E6%98%AFwibibi%E6%B8%AC%E8%A9%A6%E5%AD%97%E4%B8%B2'
    3     1        INIT_FCALL                                               'mb_strlen'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 8
          5        SEND_VAL                                                 'utf-8'
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.12 ms | 1397 KiB | 16 Q