3v4l.org

run code in 500+ PHP versions simultaneously
<?php function getIn($i) { $str = 'abcdefghijklmnopqrstuvwxyz'; $r = (int) floor($i / 26) ; $c = $i % 26; return ($r) < 1 ? $str[$c] : $str[$r-1] . $str[$c]; } echo getIn(800);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Gdtq
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                                   'getin'
          1        SEND_VAL                                                     800
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
          4      > RETURN                                                       1

Function getin:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Gdtq
function name:  getIn
number of ops:  22
compiled vars:  !0 = $i, !1 = $str, !2 = $r, !3 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        ASSIGN                                                       !1, 'abcdefghijklmnopqrstuvwxyz'
    5     2        INIT_FCALL                                                   'floor'
          3        DIV                                                  ~5      !0, 26
          4        SEND_VAL                                                     ~5
          5        DO_ICALL                                             $6      
          6        CAST                                              4  ~7      $6
          7        ASSIGN                                                       !2, ~7
    6     8        MOD                                                  ~9      !0, 26
          9        ASSIGN                                                       !3, ~9
    8    10        IS_SMALLER                                                   !2, 1
         11      > JMPZ                                                         ~11, ->15
         12    >   FETCH_DIM_R                                          ~12     !1, !3
         13        QM_ASSIGN                                            ~13     ~12
         14      > JMP                                                          ->20
         15    >   SUB                                                  ~14     !2, 1
         16        FETCH_DIM_R                                          ~15     !1, ~14
         17        FETCH_DIM_R                                          ~16     !1, !3
         18        CONCAT                                               ~17     ~15, ~16
         19        QM_ASSIGN                                            ~13     ~17
         20    > > RETURN                                                       ~13
    9    21*     > RETURN                                                       null

End of function getin

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.13 ms | 1872 KiB | 14 Q