3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "=?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= <keld@example.com>"; $elements = imap_mime_header_decode($text); for ($i=0; $i<count($elements); $i++) { echo "Charset: {$elements[$i]->charset}\n"; echo "Text: {$elements[$i]->text}\n\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
Branch analysis from position: 7
filename:       /in/8sH48
function name:  (null)
number of ops:  24
compiled vars:  !0 = $text, !1 = $elements, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3D%3FISO-8859-1%3FQ%3FKeld_J%3DF8rn_Simonsen%3F%3D+%3Ckeld%40example.com%3E'
    4     1        INIT_FCALL_BY_NAME                                       'imap_mime_header_decode'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !1, $4
    5     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->20
    6     7    >   ROPE_INIT                                     3  ~10     'Charset%3A+'
          8        FETCH_DIM_R                                      ~7      !1, !2
          9        FETCH_OBJ_R                                      ~8      ~7, 'charset'
         10        ROPE_ADD                                      1  ~10     ~10, ~8
         11        ROPE_END                                      2  ~9      ~10, '%0A'
         12        ECHO                                                     ~9
    7    13        ROPE_INIT                                     3  ~15     'Text%3A+'
         14        FETCH_DIM_R                                      ~12     !1, !2
         15        FETCH_OBJ_R                                      ~13     ~12, 'text'
         16        ROPE_ADD                                      1  ~15     ~15, ~13
         17        ROPE_END                                      2  ~14     ~15, '%0A%0A'
         18        ECHO                                                     ~14
    5    19        PRE_INC                                                  !2
         20    >   COUNT                                            ~18     !1
         21        IS_SMALLER                                               !2, ~18
         22      > JMPNZ                                                    ~19, ->7
    9    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.7 ms | 1394 KiB | 13 Q