3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_substitute_character(ord('?')); var_dump(mb_convert_encoding("\xDF\xC0", 'UTF-8', 'UTF-8')); var_dump(mb_convert_encoding("\xEF\xBF\xC0", 'UTF-8', 'UTF-8')); var_dump(mb_convert_encoding("\xF4\x8F\xBF\xC0", 'UTF-8', 'UTF-8'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qt2HJ
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_substitute_character'
          1        SEND_VAL                                                 63
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'mb_convert_encoding'
          5        SEND_VAL                                                 '%DF%C0'
          6        SEND_VAL                                                 'UTF-8'
          7        SEND_VAL                                                 'UTF-8'
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'mb_convert_encoding'
         13        SEND_VAL                                                 '%EF%BF%C0'
         14        SEND_VAL                                                 'UTF-8'
         15        SEND_VAL                                                 'UTF-8'
         16        DO_ICALL                                         $3      
         17        SEND_VAR                                                 $3
         18        DO_ICALL                                                 
    6    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'mb_convert_encoding'
         21        SEND_VAL                                                 '%F4%8F%BF%C0'
         22        SEND_VAL                                                 'UTF-8'
         23        SEND_VAL                                                 'UTF-8'
         24        DO_ICALL                                         $5      
         25        SEND_VAR                                                 $5
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
218.58 ms | 1004 KiB | 16 Q