3v4l.org

run code in 500+ PHP versions simultaneously
<?php mb_internal_encoding("latin1"); var_dump(mb_strlen("ç")); mb_internal_encoding("utf8"); var_dump(mb_strlen("ç")); mb_internal_encoding("utf16"); var_dump(mb_strlen("ç"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bq7cF
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'mb_internal_encoding'
          1        SEND_VAL                                                     'latin1'
          2        DO_ICALL                                                     
    4     3        INIT_FCALL                                                   'var_dump'
          4        INIT_FCALL                                                   'mb_strlen'
          5        SEND_VAL                                                     '%C3%A7'
          6        DO_ICALL                                             $1      
          7        SEND_VAR                                                     $1
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'mb_internal_encoding'
         10        SEND_VAL                                                     'utf8'
         11        DO_ICALL                                                     
    7    12        INIT_FCALL                                                   'var_dump'
         13        INIT_FCALL                                                   'mb_strlen'
         14        SEND_VAL                                                     '%C3%A7'
         15        DO_ICALL                                             $4      
         16        SEND_VAR                                                     $4
         17        DO_ICALL                                                     
    9    18        INIT_FCALL                                                   'mb_internal_encoding'
         19        SEND_VAL                                                     'utf16'
         20        DO_ICALL                                                     
   10    21        INIT_FCALL                                                   'var_dump'
         22        INIT_FCALL                                                   'mb_strlen'
         23        SEND_VAL                                                     '%C3%A7'
         24        DO_ICALL                                             $7      
         25        SEND_VAR                                                     $7
         26        DO_ICALL                                                     
         27      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
179.42 ms | 2581 KiB | 16 Q