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/EsaSp
function name:  (null)
number of ops:  16
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'
    6     1        ASSIGN                                                   !1, 'ch%C3%A1r%C3%AAct%C3%ABrs'
    7     2        INIT_FCALL                                               'mb_detect_encoding'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $4      
          5        ECHO                                                     $4
    9     6        INIT_FCALL                                               'mb_convert_encoding'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 'UTF-8'
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
   10    11        INIT_FCALL                                               'mb_detect_encoding'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        ECHO                                                     $7
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.97 ms | 1394 KiB | 17 Q