3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AliasPool { protected static $i = 0; public static function get () { $alias = ''; $j = self::$i; do { $alias = chr(($j % 26) + ord('a')) . $alias; $j = floor($j / 26); } while ($j > 0); self::$i++; return 'tag_' .$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/HEHEE
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 = 17, Position 2 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
filename:       /in/HEHEE
function name:  get
number of ops:  21
compiled vars:  !0 = $alias, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, ''
    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        CONCAT                                           ~8      $7, !0
          9        ASSIGN                                                   !0, ~8
    9    10        INIT_FCALL                                               'floor'
         11        DIV                                              ~10     !1, 26
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !1, $11
   10    15        IS_SMALLER                                               0, !1
         16      > JMPNZ                                                    ~13, ->3
   11    17    >   PRE_INC_STATIC_PROP                                      'i'
   12    18        CONCAT                                           ~15     'tag_', !0
         19      > RETURN                                                   ~15
   13    20*     > 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