3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = '/dav/files/admin/%C3%BC%C3%B6%C3%A4%C3%B6%C3%A4%C3%BC%C3%B6%C3%A4%C3%BB%C5%B7%C3%AE'; $rawstr = rawurldecode($str); var_dump( $rawstr, mb_detect_encoding($rawstr, ['UTF-8']), mb_detect_encoding($rawstr, ['UTF-8', 'ISO-8859-1']), mb_detect_encoding($rawstr, ['ISO-8859-1', 'UTF-8']), mb_check_encoding($rawstr, 'ISO-8859-1'), mb_check_encoding($rawstr, 'UTF-8'), );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YGQ8s
function name:  (null)
number of ops:  34
compiled vars:  !0 = $str, !1 = $rawstr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2Fdav%2Ffiles%2Fadmin%2F%25C3%25BC%25C3%25B6%25C3%25A4%25C3%25B6%25C3%25A4%25C3%25BC%25C3%25B6%25C3%25A4%25C3%25BB%25C5%25B7%25C3%25AE'
    4     1        INIT_FCALL                                                   'rawurldecode'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
    6     5        INIT_FCALL                                                   'var_dump'
    7     6        SEND_VAR                                                     !1
    8     7        INIT_FCALL                                                   'mb_detect_encoding'
          8        SEND_VAR                                                     !1
          9        SEND_VAL                                                     <array>
         10        DO_ICALL                                             $5      
         11        SEND_VAR                                                     $5
    9    12        INIT_FCALL                                                   'mb_detect_encoding'
         13        SEND_VAR                                                     !1
         14        SEND_VAL                                                     <array>
         15        DO_ICALL                                             $6      
         16        SEND_VAR                                                     $6
   10    17        INIT_FCALL                                                   'mb_detect_encoding'
         18        SEND_VAR                                                     !1
         19        SEND_VAL                                                     <array>
         20        DO_ICALL                                             $7      
         21        SEND_VAR                                                     $7
   11    22        INIT_FCALL                                                   'mb_check_encoding'
         23        SEND_VAR                                                     !1
         24        SEND_VAL                                                     'ISO-8859-1'
         25        DO_ICALL                                             $8      
         26        SEND_VAR                                                     $8
   12    27        INIT_FCALL                                                   'mb_check_encoding'
         28        SEND_VAR                                                     !1
         29        SEND_VAL                                                     'UTF-8'
         30        DO_ICALL                                             $9      
         31        SEND_VAR                                                     $9
    6    32        DO_ICALL                                                     
   13    33      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
129.96 ms | 483 KiB | 11 Q