3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sequenceAlphaNumeric($code, $count = 1) { $strLength = strlen($code); $base10 = base_convert($code, 45, 10); var_dump($code, $base10);die; $result = base_convert((int) $base10 + $count, 10, 36); $result = str_pad($result, $strLength, '0', STR_PAD_LEFT); $result = strtoupper($result); return $result; } echo sequenceAlphaNumeric('09');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tQAUv
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'sequencealphanumeric'
          1        SEND_VAL                                                 '09'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function sequencealphanumeric:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/tQAUv
function name:  sequenceAlphaNumeric
number of ops:  36
compiled vars:  !0 = $code, !1 = $count, !2 = $strLength, !3 = $base10, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      1
    5     2        STRLEN                                           ~5      !0
          3        ASSIGN                                                   !2, ~5
    6     4        INIT_FCALL                                               'base_convert'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 45
          7        SEND_VAL                                                 10
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !3, $7
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                                 
         14      > EXIT                                                     
    8    15*       INIT_FCALL                                               'base_convert'
         16*       CAST                                          4  ~10     !3
         17*       ADD                                              ~11     ~10, !1
         18*       SEND_VAL                                                 ~11
         19*       SEND_VAL                                                 10
         20*       SEND_VAL                                                 36
         21*       DO_ICALL                                         $12     
         22*       ASSIGN                                                   !4, $12
    9    23*       INIT_FCALL                                               'str_pad'
         24*       SEND_VAR                                                 !4
         25*       SEND_VAR                                                 !2
         26*       SEND_VAL                                                 '0'
         27*       SEND_VAL                                                 0
         28*       DO_ICALL                                         $14     
         29*       ASSIGN                                                   !4, $14
   10    30*       INIT_FCALL                                               'strtoupper'
         31*       SEND_VAR                                                 !4
         32*       DO_ICALL                                         $16     
         33*       ASSIGN                                                   !4, $16
   12    34*       RETURN                                                   !4
   13    35*     > RETURN                                                   null

End of function sequencealphanumeric

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.53 ms | 1394 KiB | 22 Q