3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'Tglich montags bis freitags'; #s = iconv('UTF-8', 'ISO-8859-1', $s); $encoding = mb_detect_encoding($s, 'UTF-8', 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/aW5W8
function name:  (null)
number of ops:  18
compiled vars:  !0 = $s, !1 = $encoding, !2 = $hex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Tglich+montags+bis+freitags'
    5     1        INIT_FCALL                                               'mb_detect_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'UTF-8'
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    6     7        INIT_FCALL                                               'bin2hex'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    8    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.73 ms | 1394 KiB | 19 Q