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?=22=53=61=70=65=2E=72=75=22=20?='; var_dump(decodeHeader($header));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PJHU
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%3D22%3D53%3D61%3D70%3D65%3D2E%3D72%3D75%3D22%3D20%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/0PJHU
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:
159.72 ms | 1397 KiB | 19 Q