3v4l.org

run code in 300+ PHP versions simultaneously
<?php function diacriticsToNumbers($str) { return strtr($str, '+ěščřžýáíé+ĚŠČŘŽÝÁÍÉ', '12345678901234567890'); } echo diacriticsToNumbers('áéé ššé éýž');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2WL0n
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'diacriticstonumbers'
          1        SEND_VAL                                                 '%C3%A1%C3%A9%C3%A9+%C5%A1%C5%A1%C3%A9+%C3%A9%C3%BD%C5%BE'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function diacriticstonumbers:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2WL0n
function name:  diacriticsToNumbers
number of ops:  8
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'strtr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%2B%C4%9B%C5%A1%C4%8D%C5%99%C5%BE%C3%BD%C3%A1%C3%AD%C3%A9%2B%C4%9A%C5%A0%C4%8C%C5%98%C5%BD%C3%9D%C3%81%C3%8D%C3%89'
          4        SEND_VAL                                                 '12345678901234567890'
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    5     7*     > RETURN                                                   null

End of function diacriticstonumbers

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1401 KiB | 16 Q