3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AliasPool { protected static $i = 0; public static function get () { $alias = 'tag_'; while ($i > 26) { $alias .= chr(($i % 26) + oct('a')); $i = floor($i / 26); } $i++; return $alias; } } for ($i = 0; $i < 60; ++$i) { var_dump(AliasPool::get()); print "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
Branch analysis from position: 2
filename:       /in/5TkKV
function name:  (null)
number of ops:  12
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->9
   16     2    >   INIT_FCALL                                               'var_dump'
          3        INIT_STATIC_METHOD_CALL                                  'AliasPool', 'get'
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
   17     7        ECHO                                                     '%0A'
   15     8        PRE_INC                                                  !0
          9    >   IS_SMALLER                                               !0, 60
         10      > JMPNZ                                                    ~5, ->2
   18    11    > > RETURN                                                   1

Class AliasPool:
Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
filename:       /in/5TkKV
function name:  get
number of ops:  21
compiled vars:  !0 = $alias, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'tag_'
    6     1      > JMP                                                      ->16
    7     2    >   INIT_FCALL                                               'chr'
          3        MOD                                              ~3      !1, 26
          4        INIT_FCALL_BY_NAME                                       'oct'
          5        SEND_VAL_EX                                              'a'
          6        DO_FCALL                                      0  $4      
          7        ADD                                              ~5      ~3, $4
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ASSIGN_OP                                     8          !0, $6
    8    11        INIT_FCALL                                               'floor'
         12        DIV                                              ~8      !1, 26
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !1, $9
    6    16    >   IS_SMALLER                                               26, !1
         17      > JMPNZ                                                    ~11, ->2
   10    18    >   PRE_INC                                                  !1
   11    19      > RETURN                                                   !0
   12    20*     > RETURN                                                   null

End of function get

End of class AliasPool.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.13 ms | 1400 KiB | 19 Q