3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $value = 'g' . chr(0xa4) .'eld'; mb_substitute_character('long'); var_dump(mb_convert_encoding($value, 'UTF-8')); mb_substitute_character(0x3013); var_dump(mb_convert_encoding($value, 'UTF-8')); mb_substitute_character('entity'); var_dump(mb_convert_encoding($value, 'UTF-8'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DmHja
function name:  (null)
number of ops:  35
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'
    6     4        INIT_FCALL                                               'mb_substitute_character'
          5        SEND_VAL                                                 'long'
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'mb_convert_encoding'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'mb_substitute_character'
         15        SEND_VAL                                                 12307
         16        DO_ICALL                                                 
   10    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'mb_convert_encoding'
         19        SEND_VAR                                                 !0
         20        SEND_VAL                                                 'UTF-8'
         21        DO_ICALL                                         $7      
         22        SEND_VAR                                                 $7
         23        DO_ICALL                                                 
   12    24        INIT_FCALL                                               'mb_substitute_character'
         25        SEND_VAL                                                 'entity'
         26        DO_ICALL                                                 
   13    27        INIT_FCALL                                               'var_dump'
         28        INIT_FCALL                                               'mb_convert_encoding'
         29        SEND_VAR                                                 !0
         30        SEND_VAL                                                 'UTF-8'
         31        DO_ICALL                                         $10     
         32        SEND_VAR                                                 $10
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.09 ms | 1396 KiB | 21 Q