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('long'), mb_convert_encoding($value, 'UTF-8')); var_dump(mb_substitute_character(0x3013), mb_convert_encoding($value, 'UTF-8')); var_dump(mb_substitute_character('entity'), mb_convert_encoding($value, 'UTF-8'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yn7AH
function name:  (null)
number of ops:  38
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                                                 'long'
          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        DO_ICALL                                                 
    8    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'mb_substitute_character'
         17        SEND_VAL                                                 12307
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        INIT_FCALL                                               'mb_convert_encoding'
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 'UTF-8'
         23        DO_ICALL                                         $7      
         24        SEND_VAR                                                 $7
         25        DO_ICALL                                                 
    9    26        INIT_FCALL                                               'var_dump'
         27        INIT_FCALL                                               'mb_substitute_character'
         28        SEND_VAL                                                 'entity'
         29        DO_ICALL                                         $9      
         30        SEND_VAR                                                 $9
         31        INIT_FCALL                                               'mb_convert_encoding'
         32        SEND_VAR                                                 !0
         33        SEND_VAL                                                 'UTF-8'
         34        DO_ICALL                                         $10     
         35        SEND_VAR                                                 $10
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.26 ms | 1388 KiB | 21 Q