3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dni = '342501198701065'; $row = str_split($dni); $letters = array_combine(range(0,25), range('a', 'z')); //now just use: foreach($row as $n) echo $letters[$n];
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/U92Vr
function name:  (null)
number of ops:  25
compiled vars:  !0 = $dni, !1 = $row, !2 = $letters, !3 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '342501198701065'
    3     1        INIT_FCALL                                               'str_split'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        INIT_FCALL                                               'array_combine'
          6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 25
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        INIT_FCALL                                               'range'
         12        SEND_VAL                                                 'a'
         13        SEND_VAL                                                 'z'
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !2, $9
    7    18      > FE_RESET_R                                       $11     !1, ->23
         19    > > FE_FETCH_R                                               $11, !3, ->23
    8    20    >   FETCH_DIM_R                                      ~12     !2, !3
         21        ECHO                                                     ~12
    7    22      > JMP                                                      ->19
         23    >   FE_FREE                                                  $11
    8    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.75 ms | 1395 KiB | 19 Q