3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("base64alphabet",'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'); function epxandb64($id, $alphabet=base64alphabet) { $base = strlen($alphabet); $len = strlen($id)-1; $long = 0.0; $mul=1; for($i=$len;$i>=0;$i--) { $long += strpos($alphabet, substr($id, $i,1))*$mul; $mul *= $base; } return $long; } echo epxandb64('0HcvFJMbvGx5rA');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ehIh7
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'base64alphabet'
          2        SEND_VAL                                                 '-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
          3        DO_ICALL                                                 
   21     4        INIT_FCALL                                               'epxandb64'
          5        SEND_VAL                                                 '0HcvFJMbvGx5rA'
          6        DO_FCALL                                      0  $1      
          7        ECHO                                                     $1
          8      > RETURN                                                   1

Function epxandb64:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 11
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 11
Branch analysis from position: 26
Branch analysis from position: 11
filename:       /in/ehIh7
function name:  epxandb64
number of ops:  28
compiled vars:  !0 = $id, !1 = $alphabet, !2 = $base, !3 = $len, !4 = $long, !5 = $mul, !6 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <const ast>
    7     2        STRLEN                                           ~7      !1
          3        ASSIGN                                                   !2, ~7
    8     4        STRLEN                                           ~9      !0
          5        SUB                                              ~10     ~9, 1
          6        ASSIGN                                                   !3, ~10
    9     7        ASSIGN                                                   !4, 0
   10     8        ASSIGN                                                   !5, 1
   12     9        ASSIGN                                                   !6, !3
         10      > JMP                                                      ->24
   14    11    >   INIT_FCALL                                               'strpos'
         12        SEND_VAR                                                 !1
         13        INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !6
         16        SEND_VAL                                                 1
         17        DO_ICALL                                         $15     
         18        SEND_VAR                                                 $15
         19        DO_ICALL                                         $16     
         20        MUL                                              ~17     !5, $16
         21        ASSIGN_OP                                     1          !4, ~17
   15    22        ASSIGN_OP                                     3          !5, !2
   12    23        PRE_DEC                                                  !6
         24    >   IS_SMALLER_OR_EQUAL                                      0, !6
         25      > JMPNZ                                                    ~21, ->11
   18    26    > > RETURN                                                   !4
   19    27*     > RETURN                                                   null

End of function epxandb64

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.25 ms | 1403 KiB | 20 Q