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'), 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'), mb_substitute_character());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eMmRs
function name:  (null)
number of ops:  75
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        DO_ICALL                                         $12     
         40        SEND_VAR                                                 $12
         41        INIT_FCALL                                               'mb_substitute_character'
         42        DO_ICALL                                         $13     
         43        SEND_VAR                                                 $13
         44        DO_ICALL                                                 
    9    45        INIT_FCALL                                               'var_dump'
         46        INIT_FCALL                                               'mb_substitute_character'
         47        SEND_VAL                                                 12307
         48        DO_ICALL                                         $15     
         49        SEND_VAR                                                 $15
         50        INIT_FCALL                                               'mb_convert_encoding'
         51        SEND_VAR                                                 !0
         52        SEND_VAL                                                 'UTF-8'
         53        SEND_VAL                                                 'ISO-8859-15'
         54        DO_ICALL                                         $16     
         55        SEND_VAR                                                 $16
         56        INIT_FCALL                                               'mb_substitute_character'
         57        DO_ICALL                                         $17     
         58        SEND_VAR                                                 $17
         59        DO_ICALL                                                 
   10    60        INIT_FCALL                                               'var_dump'
         61        INIT_FCALL                                               'mb_substitute_character'
         62        SEND_VAL                                                 'none'
         63        DO_ICALL                                         $19     
         64        SEND_VAR                                                 $19
         65        INIT_FCALL                                               'mb_convert_encoding'
         66        SEND_VAR                                                 !0
         67        SEND_VAL                                                 'UTF-8'
         68        DO_ICALL                                         $20     
         69        SEND_VAR                                                 $20
         70        INIT_FCALL                                               'mb_substitute_character'
         71        DO_ICALL                                         $21     
         72        SEND_VAR                                                 $21
         73        DO_ICALL                                                 
         74      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.96 ms | 1400 KiB | 25 Q