3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.54 ms | 1396 KiB | 19 Q