3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'Täglich montags bis freitags'; $s = iconv('UTF-8', 'ISO-8859-1', $s); $encoding = mb_detect_encoding($s, array('UTF-8', 'ISO-8859-1'), true); $hex = bin2hex($s); var_dump($encoding); var_dump($hex);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nfn80
function name:  (null)
number of ops:  24
compiled vars:  !0 = $s, !1 = $encoding, !2 = $hex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'T%C3%A4glich+montags+bis+freitags'
    3     1        INIT_FCALL_BY_NAME                                       'iconv'
          2        SEND_VAL_EX                                              'UTF-8'
          3        SEND_VAL_EX                                              'ISO-8859-1'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $4      
          6        ASSIGN                                                   !0, $4
    5     7        INIT_FCALL                                               'mb_detect_encoding'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 <array>
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    6    13        INIT_FCALL                                               'bin2hex'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !2, $8
    8    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
    9    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.59 ms | 1395 KiB | 22 Q