3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matrix = [ 'ā' => 'a', 'ē' => 'e', 'ī' => 'i', 'ū' => 'u', 'š' => 's', 'ģ' => 'g', 'ķ' => 'k', 'ļ' => 'l', 'ž' => 'z', 'č' => 'c', 'ņ' => 'n', ]; $string = 'āāa'; $string = iconv('ISO-8859-1', 'ASCII//TRANSLIT//IGNORE', $string ); $string = strtr($string, $matrix); var_dump($string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/frcph
function name:  (null)
number of ops:  17
compiled vars:  !0 = $matrix, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   16     1        ASSIGN                                                   !1, '%C4%81%C4%81a'
   18     2        INIT_FCALL_BY_NAME                                       'iconv'
          3        SEND_VAL_EX                                              'ISO-8859-1'
          4        SEND_VAL_EX                                              'ASCII%2F%2FTRANSLIT%2F%2FIGNORE'
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !1, $4
   19     8        INIT_FCALL                                               'strtr'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
   20    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.26 ms | 1394 KiB | 20 Q