3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 'en_US.UTF-8'); $str = "u\u0308 a\u0302 a\u0308 o\u0300"; $str = preg_replace('/\\\\u([0-9a-f]+)/i', '&#x$1;', $str); $str = html_entity_decode($str, ENT_QUOTES, 'UTF-8'); var_dump( iconv("UTF-8", "ISO-8859-1//TRANSLIT", $str) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z0asM
function name:  (null)
number of ops:  26
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'en_US.UTF-8'
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, 'u%5Cu0308+a%5Cu0302+a%5Cu0308+o%5Cu0300'
    6     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%2F%5C%5Cu%28%5B0-9a-f%5D%2B%29%2Fi'
          7        SEND_VAL                                                 '%26%23x%241%3B'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    7    11        INIT_FCALL                                               'html_entity_decode'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 3
         14        SEND_VAL                                                 'UTF-8'
         15        DO_ICALL                                         $5      
         16        ASSIGN                                                   !0, $5
    8    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL_BY_NAME                                       'iconv'
         19        SEND_VAL_EX                                              'UTF-8'
         20        SEND_VAL_EX                                              'ISO-8859-1%2F%2FTRANSLIT'
         21        SEND_VAR_EX                                              !0
         22        DO_FCALL                                      0  $7      
         23        SEND_VAR                                                 $7
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.8 ms | 1387 KiB | 21 Q