3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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/tdkeT
function name:  (null)
number of ops:  8
compiled vars:  !0 = $header
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   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'
   16     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'decodeheader'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

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

End of function decodeheader

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.58 ms | 1397 KiB | 18 Q