3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("mbstring.internal_encoding", "utf-8"); var_dump(mb_strlen("รค", "utf-8"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VDtBg
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'mbstring.internal_encoding'
          2        SEND_VAL                                                 'utf-8'
          3        DO_ICALL                                                 
          4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'mb_strlen'
          6        SEND_VAL                                                 '%C3%A4'
          7        SEND_VAL                                                 'utf-8'
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.37 ms | 939 KiB | 20 Q