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);*/ $str = 'AŠA'; 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/m5niN
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSIGN                                                   !0, 'A%C5%A0A'
   18     1        INIT_FCALL_BY_NAME                                       'iconv'
          2        SEND_VAL_EX                                              'UTF-8'
          3        SEND_VAL_EX                                              'ASCII%2F%2FTRANSLIT'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $2      
          6        ASSIGN                                           ~3      !0, $2
          7        ECHO                                                     ~3
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.1 ms | 1392 KiB | 16 Q