3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'kur̃šių nerijà'; $matrix = [ 'ā' => 'a', 'ē' => 'e', 'ī' => 'i', 'ū' => 'u', 'š' => 's', 'ģ' => 'g', 'ķ' => 'k', 'ļ' => 'l', 'ž' => 'z', 'č' => 'c', 'ņ' => 'n', ]; $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/TBpD5
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $matrix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'kur%CC%83%C5%A1i%C5%B3+nerij%C3%A0'
    4     1        ASSIGN                                                   !1, <array>
   17     2        INIT_FCALL                                               'strtr'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
   19     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.7 ms | 1394 KiB | 17 Q