3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Prüfung Prüfung"; $preferences = array( "input-charset" => "ISO-8859-1", "output-charset" => "UTF-8", "line-length" => 76, "line-break-chars" => "\n" ); $preferences["scheme"] = "Q"; echo iconv_mime_encode("Subject", $string, $preferences); echo "/n/n"; echo mb_encode_mimeheader("Subject: $string", "UTF-8", "Q");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XBBZ2
function name:  (null)
number of ops:  20
compiled vars:  !0 = $string, !1 = $preferences
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Pr%C3%BCfung+Pr%C3%BCfung'
    3     1        ASSIGN                                                   !1, <array>
    9     2        ASSIGN_DIM                                               !1, 'scheme'
          3        OP_DATA                                                  'Q'
   11     4        INIT_FCALL_BY_NAME                                       'iconv_mime_encode'
          5        SEND_VAL_EX                                              'Subject'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
   12    10        ECHO                                                     '%2Fn%2Fn'
   15    11        INIT_FCALL                                               'mb_encode_mimeheader'
         12        NOP                                                      
         13        FAST_CONCAT                                      ~6      'Subject%3A+', !0
         14        SEND_VAL                                                 ~6
         15        SEND_VAL                                                 'UTF-8'
         16        SEND_VAL                                                 'Q'
         17        DO_ICALL                                         $7      
         18        ECHO                                                     $7
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.7 ms | 1395 KiB | 15 Q