3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding("UTF-8"); function decodeHeader($header) { $charset = 'UTF-8'; //$decoded = iconv_mime_decode($header, ICONV_MIME_DECODE_STRICT, $charset); $decoded = mb_decode_mimeheader($header); return $decoded; } $header = '=?utf-8?Q?=D0=90=D0=BA=D1=82=D0=B8=D0=B2=D0=B0=D1=86=D0=B8=D1=8F=20=D1=83=D1=87=D0=B5=D1=82=D0=BD=D0=BE=D0=B9=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81=D0=B8?='; var_dump(decodeHeader($header));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2l2Qa
function name:  (null)
number of ops:  11
compiled vars:  !0 = $header
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                                                 
   16     3        ASSIGN                                                   !0, '%3D%3Futf-8%3FQ%3F%3DD0%3D90%3DD0%3DBA%3DD1%3D82%3DD0%3DB8%3DD0%3DB2%3DD0%3DB0%3DD1%3D86%3DD0%3DB8%3DD1%3D8F%3D20%3DD1%3D83%3DD1%3D87%3DD0%3DB5%3DD1%3D82%3DD0%3DBD%3DD0%3DBE%3DD0%3DB9%3D20%3DD0%3DB7%3DD0%3DB0%3DD0%3DBF%3DD0%3DB8%3DD1%3D81%3DD0%3DB8%3F%3D'
   18     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'decodeheader'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0  $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function decodeheader:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2l2Qa
function name:  decodeHeader
number of ops:  8
compiled vars:  !0 = $header, !1 = $charset, !2 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        ASSIGN                                                   !1, 'UTF-8'
   10     2        INIT_FCALL                                               'mb_decode_mimeheader'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !2, $4
   12     6      > RETURN                                                   !2
   14     7*     > RETURN                                                   null

End of function decodeheader

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.24 ms | 1398 KiB | 20 Q