3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "3 624,00 K\u010d"; echo iconv('ASCII', 'UTF-8', $a); $string = "chárêctërs"; print(mb_detect_encoding ($string)); $string = mb_convert_encoding($string, "UTF-8"); print(mb_detect_encoding ($string));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LHDI9
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '3+624%2C00+K%5Cu010d'
    4     1        INIT_FCALL_BY_NAME                                       'iconv'
          2        SEND_VAL_EX                                              'ASCII'
          3        SEND_VAL_EX                                              'UTF-8'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $3      
          6        ECHO                                                     $3
    6     7        ASSIGN                                                   !1, 'ch%C3%A1r%C3%AAct%C3%ABrs'
    7     8        INIT_FCALL                                               'mb_detect_encoding'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        ECHO                                                     $5
    9    12        INIT_FCALL                                               'mb_convert_encoding'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 'UTF-8'
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !1, $6
   10    17        INIT_FCALL                                               'mb_detect_encoding'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $8      
         20        ECHO                                                     $8
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.56 ms | 1395 KiB | 20 Q