3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $value = 'g' . chr(0x04) .'eld'; var_dump(mb_detect_order()); var_dump(mb_substitute_character('entity'), mb_convert_encoding($value, 'UTF-8'), mb_substitute_character(), mb_detect_encoding($value, mb_detect_order(), true)); var_dump(mb_substitute_character('long'), mb_convert_encoding($value, 'UTF-8', 'ISO-8859-15'), mb_substitute_character()); var_dump(mb_substitute_character(0x3013), mb_convert_encoding($value, 'UTF-8', 'ISO-8859-15'), mb_substitute_character()); var_dump(mb_substitute_character('none'), mb_convert_encoding($value, 'UTF-8', 'ISO-8859-15'), mb_substitute_character());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9IIJc
function name:  (null)
number of ops:  77
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, 'g%04eld'
    6     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'mb_detect_order'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'mb_substitute_character'
         11        SEND_VAL                                                 'entity'
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        INIT_FCALL                                               'mb_convert_encoding'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 'UTF-8'
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        INIT_FCALL                                               'mb_substitute_character'
         20        DO_ICALL                                         $7      
         21        SEND_VAR                                                 $7
         22        INIT_FCALL                                               'mb_detect_encoding'
         23        SEND_VAR                                                 !0
         24        INIT_FCALL                                               'mb_detect_order'
         25        DO_ICALL                                         $8      
         26        SEND_VAR                                                 $8
         27        SEND_VAL                                                 <true>
         28        DO_ICALL                                         $9      
         29        SEND_VAR                                                 $9
         30        DO_ICALL                                                 
    8    31        INIT_FCALL                                               'var_dump'
         32        INIT_FCALL                                               'mb_substitute_character'
         33        SEND_VAL                                                 'long'
         34        DO_ICALL                                         $11     
         35        SEND_VAR                                                 $11
         36        INIT_FCALL                                               'mb_convert_encoding'
         37        SEND_VAR                                                 !0
         38        SEND_VAL                                                 'UTF-8'
         39        SEND_VAL                                                 'ISO-8859-15'
         40        DO_ICALL                                         $12     
         41        SEND_VAR                                                 $12
         42        INIT_FCALL                                               'mb_substitute_character'
         43        DO_ICALL                                         $13     
         44        SEND_VAR                                                 $13
         45        DO_ICALL                                                 
    9    46        INIT_FCALL                                               'var_dump'
         47        INIT_FCALL                                               'mb_substitute_character'
         48        SEND_VAL                                                 12307
         49        DO_ICALL                                         $15     
         50        SEND_VAR                                                 $15
         51        INIT_FCALL                                               'mb_convert_encoding'
         52        SEND_VAR                                                 !0
         53        SEND_VAL                                                 'UTF-8'
         54        SEND_VAL                                                 'ISO-8859-15'
         55        DO_ICALL                                         $16     
         56        SEND_VAR                                                 $16
         57        INIT_FCALL                                               'mb_substitute_character'
         58        DO_ICALL                                         $17     
         59        SEND_VAR                                                 $17
         60        DO_ICALL                                                 
   10    61        INIT_FCALL                                               'var_dump'
         62        INIT_FCALL                                               'mb_substitute_character'
         63        SEND_VAL                                                 'none'
         64        DO_ICALL                                         $19     
         65        SEND_VAR                                                 $19
         66        INIT_FCALL                                               'mb_convert_encoding'
         67        SEND_VAR                                                 !0
         68        SEND_VAL                                                 'UTF-8'
         69        SEND_VAL                                                 'ISO-8859-15'
         70        DO_ICALL                                         $20     
         71        SEND_VAR                                                 $20
         72        INIT_FCALL                                               'mb_substitute_character'
         73        DO_ICALL                                         $21     
         74        SEND_VAR                                                 $21
         75        DO_ICALL                                                 
         76      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.36 ms | 1392 KiB | 25 Q