3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Аl(ОН)3х12Н2О'; $trans = array( 'А' => 'A', 'В' => 'B', 'С' => 'C', 'Е' => 'E', 'Н' => 'H', 'К' => 'K', 'М' => 'M', 'О' => 'O', 'Р' => 'P', 'Т' => 'T', 'У' => 'Y', 'а' => 'a', 'с' => 'c', 'е' => 'e', 'о' => 'o', 'р' => 'p', 'у' => 'y' ); echo strtr($str, $trans);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Njj2g
function name:  (null)
number of ops:  8
compiled vars:  !0 = $str, !1 = $trans
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%D0%90l%28%D0%9E%D0%9D%293%D1%8512%D0%9D2%D0%9E'
    3     1        ASSIGN                                                   !1, <array>
    8     2        INIT_FCALL                                               'strtr'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.22 ms | 1394 KiB | 15 Q