3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo mb_strlen("안녕", "latin1"); echo strlen("안녕"); echo utf8_encode("안녕");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yln6I
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'mb_strlen'
          1        SEND_VAL                                                 '%EC%95%88%EB%85%95'
          2        SEND_VAL                                                 'latin1'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    3     5        ECHO                                                     6
    4     6        INIT_FCALL                                               'utf8_encode'
          7        SEND_VAL                                                 '%EC%95%88%EB%85%95'
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.16 ms | 1394 KiB | 17 Q