3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*echo "Coss&eacute"; echo utf8_decode("Coss&eacute"); echo iconv("ASCII","UTF-8//TRANSLIT","Coss&eacute"); $in_utf8encoded = "é à ù è ò Coss&eacute"; // first you need the convert the string to the charset you want... $in_iso8859encoded = iconv("UTF-8", "ISO-8859-1", $in_utf8encoded); // ...in order to make htmlentities work with the same charset //$out_iso8859= htmlentities($in_iso8859encoded, ENT_COMPAT, "ISO-8859-1"); // then only to display in your page, revert it back to utf-8 echo iconv("ISO-8859-1", "UTF-8", $in_iso8859encoded);*/ echo $str = 'Coss&eacute;'; echo utf8_encode($str); echo iconv("ASCII","UTF-8//TRANSLIT",$str); echo $str = iconv('UTF-8', 'ASCII//TRANSLIT', $str); // ASA
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u3n70
function name:  (null)
number of ops:  20
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSIGN                                           ~1      !0, 'Coss%26eacute%3B'
          1        ECHO                                                     ~1
   18     2        INIT_FCALL                                               'utf8_encode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
   19     6        INIT_FCALL_BY_NAME                                       'iconv'
          7        SEND_VAL_EX                                              'ASCII'
          8        SEND_VAL_EX                                              'UTF-8%2F%2FTRANSLIT'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $3      
         11        ECHO                                                     $3
   20    12        INIT_FCALL_BY_NAME                                       'iconv'
         13        SEND_VAL_EX                                              'UTF-8'
         14        SEND_VAL_EX                                              'ASCII%2F%2FTRANSLIT'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $4      
         17        ASSIGN                                           ~5      !0, $4
         18        ECHO                                                     ~5
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.05 ms | 1395 KiB | 18 Q