3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AliasPool { protected static $i = 0; public static function get () { $alias = 'tag_'; $j = self::$i; do { $alias .= chr(($j % 26) + ord('a')); $j = floor($j / 26); } while ($j > 26); self::$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/ulBbd
function name:  (null)
number of ops:  12
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->9
   17     2    >   INIT_FCALL                                               'var_dump'
          3        INIT_STATIC_METHOD_CALL                                  'AliasPool', 'get'
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
   18     7        ECHO                                                     '%0A'
   16     8        PRE_INC                                                  !0
          9    >   IS_SMALLER                                               !0, 60
         10      > JMPNZ                                                    ~5, ->2
   19    11    > > RETURN                                                   1

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

End of function get

End of class AliasPool.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.88 ms | 1388 KiB | 19 Q