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', 'ISO-8859-15'), mb_substitute_character()); 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/Y2Vcg
function name:  (null)
number of ops:  65
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        SEND_VAL                                                 'ISO-8859-15'
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        INIT_FCALL                                               'mb_substitute_character'
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                                 
    8    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'mb_substitute_character'
         21        SEND_VAL                                                 'long'
         22        DO_ICALL                                         $7      
         23        SEND_VAR                                                 $7
         24        INIT_FCALL                                               'mb_convert_encoding'
         25        SEND_VAR                                                 !0
         26        SEND_VAL                                                 'UTF-8'
         27        SEND_VAL                                                 'ISO-8859-15'
         28        DO_ICALL                                         $8      
         29        SEND_VAR                                                 $8
         30        INIT_FCALL                                               'mb_substitute_character'
         31        DO_ICALL                                         $9      
         32        SEND_VAR                                                 $9
         33        DO_ICALL                                                 
    9    34        INIT_FCALL                                               'var_dump'
         35        INIT_FCALL                                               'mb_substitute_character'
         36        SEND_VAL                                                 12307
         37        DO_ICALL                                         $11     
         38        SEND_VAR                                                 $11
         39        INIT_FCALL                                               'mb_convert_encoding'
         40        SEND_VAR                                                 !0
         41        SEND_VAL                                                 'UTF-8'
         42        SEND_VAL                                                 'ISO-8859-15'
         43        DO_ICALL                                         $12     
         44        SEND_VAR                                                 $12
         45        INIT_FCALL                                               'mb_substitute_character'
         46        DO_ICALL                                         $13     
         47        SEND_VAR                                                 $13
         48        DO_ICALL                                                 
   10    49        INIT_FCALL                                               'var_dump'
         50        INIT_FCALL                                               'mb_substitute_character'
         51        SEND_VAL                                                 'none'
         52        DO_ICALL                                         $15     
         53        SEND_VAR                                                 $15
         54        INIT_FCALL                                               'mb_convert_encoding'
         55        SEND_VAR                                                 !0
         56        SEND_VAL                                                 'UTF-8'
         57        SEND_VAL                                                 'ISO-8859-15'
         58        DO_ICALL                                         $16     
         59        SEND_VAR                                                 $16
         60        INIT_FCALL                                               'mb_substitute_character'
         61        DO_ICALL                                         $17     
         62        SEND_VAR                                                 $17
         63        DO_ICALL                                                 
         64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.74 ms | 1392 KiB | 21 Q