3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decodeHeader($header) { $charset = 'UTF-8'; $decoded = iconv_mime_decode($header, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, $charset); 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/ATrc0
function name:  (null)
number of ops:  8
compiled vars:  !0 = $header
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     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'
   15     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/ATrc0
function name:  decodeHeader
number of ops:  11
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'
    7     2        INIT_FCALL_BY_NAME                                       'iconv_mime_decode'
          3        SEND_VAR_EX                                              !0
          4        FETCH_CONSTANT                                   ~4      'ICONV_MIME_DECODE_CONTINUE_ON_ERROR'
          5        SEND_VAL_EX                                              ~4
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $5      
          8        ASSIGN                                                   !2, $5
    9     9      > RETURN                                                   !2
   11    10*     > RETURN                                                   null

End of function decodeheader

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.99 ms | 1398 KiB | 16 Q