3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set( 'default_charset', 'iso-8859-1' ); var_dump( ini_get("mbstring.internal_encoding") ); var_dump( ini_get("mbstring.http_input") ); var_dump( ini_get("mbstring.http_output") ); var_dump(mb_internal_encoding()); var_dump(mb_strlen( "\xc3\xb6" )); var_dump(mb_strlen( "\xc3\xb6", '8bit' ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZvQ67
function name:  (null)
number of ops:  41
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'default_charset'
          2        SEND_VAL                                                 'iso-8859-1'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'ini_get'
          6        SEND_VAL                                                 'mbstring.internal_encoding'
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'ini_get'
         12        SEND_VAL                                                 'mbstring.http_input'
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'ini_get'
         18        SEND_VAL                                                 'mbstring.http_output'
         19        DO_ICALL                                         $5      
         20        SEND_VAR                                                 $5
         21        DO_ICALL                                                 
    7    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'mb_internal_encoding'
         24        DO_ICALL                                         $7      
         25        SEND_VAR                                                 $7
         26        DO_ICALL                                                 
    8    27        INIT_FCALL                                               'var_dump'
         28        INIT_FCALL                                               'mb_strlen'
         29        SEND_VAL                                                 '%C3%B6'
         30        DO_ICALL                                         $9      
         31        SEND_VAR                                                 $9
         32        DO_ICALL                                                 
    9    33        INIT_FCALL                                               'var_dump'
         34        INIT_FCALL                                               'mb_strlen'
         35        SEND_VAL                                                 '%C3%B6'
         36        SEND_VAL                                                 '8bit'
         37        DO_ICALL                                         $11     
         38        SEND_VAR                                                 $11
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.18 ms | 1458 KiB | 18 Q