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( 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/kqHre
function name:  (null)
number of ops:  28
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        INIT_FCALL                                                   'mb_detect_encoding'
          7        SEND_VAR                                                     !1
          8        SEND_VAL                                                     <array>
          9        DO_ICALL                                             $5      
         10        SEND_VAR                                                     $5
    8    11        INIT_FCALL                                                   'mb_detect_encoding'
         12        SEND_VAR                                                     !1
         13        SEND_VAL                                                     <array>
         14        DO_ICALL                                             $6      
         15        SEND_VAR                                                     $6
    9    16        INIT_FCALL                                                   'mb_check_encoding'
         17        SEND_VAR                                                     !1
         18        SEND_VAL                                                     'ISO-8859-1'
         19        DO_ICALL                                             $7      
         20        SEND_VAR                                                     $7
   10    21        INIT_FCALL                                                   'mb_check_encoding'
         22        SEND_VAR                                                     !1
         23        SEND_VAL                                                     'UTF-8'
         24        DO_ICALL                                             $8      
         25        SEND_VAR                                                     $8
    6    26        DO_ICALL                                                     
   11    27      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
130.59 ms | 482 KiB | 11 Q