3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $value = 'g' . chr(0xa4) .'eld'; 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/VES0o
function name:  (null)
number of ops:  72
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%A4eld'
    7     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'mb_substitute_character'
          6        SEND_VAL                                                 'entity'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        INIT_FCALL                                               'mb_convert_encoding'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'UTF-8'
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        INIT_FCALL                                               'mb_substitute_character'
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        INIT_FCALL                                               'mb_detect_encoding'
         18        SEND_VAR                                                 !0
         19        INIT_FCALL                                               'mb_detect_order'
         20        DO_ICALL                                         $6      
         21        SEND_VAR                                                 $6
         22        SEND_VAL                                                 <true>
         23        DO_ICALL                                         $7      
         24        SEND_VAR                                                 $7
         25        DO_ICALL                                                 
    8    26        INIT_FCALL                                               'var_dump'
         27        INIT_FCALL                                               'mb_substitute_character'
         28        SEND_VAL                                                 'long'
         29        DO_ICALL                                         $9      
         30        SEND_VAR                                                 $9
         31        INIT_FCALL                                               'mb_convert_encoding'
         32        SEND_VAR                                                 !0
         33        SEND_VAL                                                 'UTF-8'
         34        SEND_VAL                                                 'ISO-8859-15'
         35        DO_ICALL                                         $10     
         36        SEND_VAR                                                 $10
         37        INIT_FCALL                                               'mb_substitute_character'
         38        DO_ICALL                                         $11     
         39        SEND_VAR                                                 $11
         40        DO_ICALL                                                 
    9    41        INIT_FCALL                                               'var_dump'
         42        INIT_FCALL                                               'mb_substitute_character'
         43        SEND_VAL                                                 12307
         44        DO_ICALL                                         $13     
         45        SEND_VAR                                                 $13
         46        INIT_FCALL                                               'mb_convert_encoding'
         47        SEND_VAR                                                 !0
         48        SEND_VAL                                                 'UTF-8'
         49        SEND_VAL                                                 'ISO-8859-15'
         50        DO_ICALL                                         $14     
         51        SEND_VAR                                                 $14
         52        INIT_FCALL                                               'mb_substitute_character'
         53        DO_ICALL                                         $15     
         54        SEND_VAR                                                 $15
         55        DO_ICALL                                                 
   10    56        INIT_FCALL                                               'var_dump'
         57        INIT_FCALL                                               'mb_substitute_character'
         58        SEND_VAL                                                 'none'
         59        DO_ICALL                                         $17     
         60        SEND_VAR                                                 $17
         61        INIT_FCALL                                               'mb_convert_encoding'
         62        SEND_VAR                                                 !0
         63        SEND_VAL                                                 'UTF-8'
         64        SEND_VAL                                                 'ISO-8859-15'
         65        DO_ICALL                                         $18     
         66        SEND_VAR                                                 $18
         67        INIT_FCALL                                               'mb_substitute_character'
         68        DO_ICALL                                         $19     
         69        SEND_VAR                                                 $19
         70        DO_ICALL                                                 
         71      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.95 ms | 1400 KiB | 25 Q