3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '=?UTF-8?B?0KHQutC70LDQtCDQntCe0J4g0JPQsNGA0LDQvdGCINC00LvRjyDQkdGL0YHRgtGA0L7QutCw0LHQtdC7?= =?UTF-8?B?0YwsIFJ1c0NhYmxlLCDQmtCw0LHQtdC70YzQvdGL0Lkg0YHQv9GA0LDQstC+0YfQvdC40LosINCT0LQ=?= =?UTF-8?B?0LXQmtCw0LHQtdC70YwsINCa0LDQsdC10LvRjCDQntC90LvQsNC50L0uINGCLiA4LTkwOS0zNDMtMTMt?= 00..xls'; function decode_utf8(string $str): string { $temp = preg_split('/\s*\?=\s*/', preg_replace('/\s*=\?UTF-8\?B\?\s*/', '', $str)); $end = array_pop($temp); $out = ''; foreach ($temp as $value) { $out .= base64_decode($value); } return $out . $end; } echo decode_utf8($string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QuMf8
function name:  (null)
number of ops:  6
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3D%3FUTF-8%3FB%3F0KHQutC70LDQtCDQntCe0J4g0JPQsNGA0LDQvdGCINC00LvRjyDQkdGL0YHRgtGA0L7QutCw0LHQtdC7%3F%3D+%3D%3FUTF-8%3FB%3F0YwsIFJ1c0NhYmxlLCDQmtCw0LHQtdC70YzQvdGL0Lkg0YHQv9GA0LDQstC%2B0YfQvdC40LosINCT0LQ%3D%3F%3D+%3D%3FUTF-8%3FB%3F0LXQmtCw0LHQtdC70YwsINCa0LDQsdC10LvRjCDQntC90LvQsNC50L0uINGCLiA4LTkwOS0zNDMtMTMt%3F%3D+00..xls'
   18     1        INIT_FCALL                                                   'decode_utf8'
          2        SEND_VAR                                                     !0
          3        DO_FCALL                                          0  $2      
          4        ECHO                                                         $2
          5      > RETURN                                                       1

Function decode_utf8:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/QuMf8
function name:  decode_utf8
number of ops:  26
compiled vars:  !0 = $str, !1 = $temp, !2 = $end, !3 = $out, !4 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
    7     1        INIT_FCALL                                                   'preg_split'
          2        SEND_VAL                                                     '%2F%5Cs%2A%5C%3F%3D%5Cs%2A%2F'
          3        FRAMELESS_ICALL_3                preg_replace        ~5      '%2F%5Cs%2A%3D%5C%3FUTF-8%5C%3FB%5C%3F%5Cs%2A%2F', ''
          4        OP_DATA                                                      !0
          5        SEND_VAL                                                     ~5
          6        DO_ICALL                                             $6      
          7        ASSIGN                                                       !1, $6
    8     8        INIT_FCALL                                                   'array_pop'
          9        SEND_REF                                                     !1
         10        DO_ICALL                                             $8      
         11        ASSIGN                                                       !2, $8
    9    12        ASSIGN                                                       !3, ''
   11    13      > FE_RESET_R                                           $11     !1, ->20
         14    > > FE_FETCH_R                                                   $11, !4, ->20
   12    15    >   INIT_FCALL                                                   'base64_decode'
         16        SEND_VAR                                                     !4
         17        DO_ICALL                                             $12     
         18        ASSIGN_OP                                         8          !3, $12
   11    19      > JMP                                                          ->14
         20    >   FE_FREE                                                      $11
   15    21        CONCAT                                               ~14     !3, !2
         22        VERIFY_RETURN_TYPE                                           ~14
         23      > RETURN                                                       ~14
   16    24*       VERIFY_RETURN_TYPE                                           
         25*     > RETURN                                                       null

End of function decode_utf8

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.55 ms | 1629 KiB | 12 Q