3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "My Spécial subject ❤ "; // your subject $addr = addcslashes(mb_encode_mimeheader($name, "UTF-8", "Q"), '"'); echo $addr; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O8Wqq
function name:  (null)
number of ops:  13
compiled vars:  !0 = $name, !1 = $addr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'My+Sp%C3%A9cial+subject+%E2%9D%A4+'
    3     1        INIT_FCALL                                               'addcslashes'
          2        INIT_FCALL                                               'mb_encode_mimeheader'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'UTF-8'
          5        SEND_VAL                                                 'Q'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_VAL                                                 '%22'
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
    4    11        ECHO                                                     !1
    5    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.86 ms | 1010 KiB | 15 Q