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; while ($j > 26) { $alias .= chr(($j % 26) + oct('a')); $j = floor($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/MGrnP
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
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
Branch analysis from position: 4
filename:       /in/MGrnP
function name:  get
number of ops:  23
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
    7     3      > JMP                                                      ->18
    8     4    >   INIT_FCALL                                               'chr'
          5        MOD                                              ~5      !1, 26
          6        INIT_FCALL_BY_NAME                                       'oct'
          7        SEND_VAL_EX                                              'a'
          8        DO_FCALL                                      0  $6      
          9        ADD                                              ~7      ~5, $6
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        ASSIGN_OP                                     8          !0, $8
    9    13        INIT_FCALL                                               'floor'
         14        DIV                                              ~10     !1, 26
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !1, $11
    7    18    >   IS_SMALLER                                               26, !1
         19      > JMPNZ                                                    ~13, ->4
   11    20    >   PRE_INC_STATIC_PROP                                      'i'
   12    21      > RETURN                                                   !0
   13    22*     > RETURN                                                   null

End of function get

End of class AliasPool.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.83 ms | 1400 KiB | 19 Q