3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string_var = "μ"; $enc=mb_detect_encoding($string_var, "UTF-8,ISO-8859-1"); $string_var=mb_convert_encoding($string_var,"UTF-8",$enc); var_dump($string_var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CoYp6
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string_var, !1 = $enc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%CE%BC'
    3     1        INIT_FCALL                                               'mb_detect_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'UTF-8%2CISO-8859-1'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        INIT_FCALL                                               'mb_convert_encoding'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'UTF-8'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !0, $5
    5    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.15 ms | 1394 KiB | 19 Q