3v4l.org

run code in 300+ PHP versions simultaneously
<?php $KEY_BASE = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $BASE = 62; $num = 11112887; $num = intval($num); $num = array_map('intval',str_split($num)); $result = ''; $remainder = ''; foreach ($num as $digit) { $remainder = $num%$BASE; $result.=$KEY_BASE[$remainder]; //echo $digit; } echo $result;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/hMsEv
function name:  (null)
number of ops:  25
compiled vars:  !0 = $KEY_BASE, !1 = $BASE, !2 = $num, !3 = $result, !4 = $remainder, !5 = $digit
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    3     1        ASSIGN                                                   !1, 62
    4     2        ASSIGN                                                   !2, 11112887
    5     3        CAST                                          4  ~9      !2
          4        ASSIGN                                                   !2, ~9
    6     5        INIT_FCALL                                               'array_map'
          6        SEND_VAL                                                 'intval'
          7        INIT_FCALL                                               'str_split'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $11     
         10        SEND_VAR                                                 $11
         11        DO_ICALL                                         $12     
         12        ASSIGN                                                   !2, $12
    7    13        ASSIGN                                                   !3, ''
    8    14        ASSIGN                                                   !4, ''
    9    15      > FE_RESET_R                                       $16     !2, ->22
         16    > > FE_FETCH_R                                               $16, !5, ->22
   10    17    >   MOD                                              ~17     !2, !1
         18        ASSIGN                                                   !4, ~17
   11    19        FETCH_DIM_R                                      ~19     !0, !4
         20        ASSIGN_OP                                     8          !3, ~19
    9    21      > JMP                                                      ->16
         22    >   FE_FREE                                                  $16
   14    23        ECHO                                                     !3
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.22 ms | 1395 KiB | 17 Q