3v4l.org

run code in 300+ PHP versions simultaneously
<?php $return = ''; $base = '01234567890'; $num = 11112887; $result_62 = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $base_arr = str_split($base); $base_len = 10; $result_62_arr = str_split($result_62); $result_62_len = 62; $num_arr = str_split($num); $num_len = strlen($num); while($num != '0') { $return = $result_62_arr[bcmod($num,62)].$return; $num = bcdiv($num,62,0); } echo $return;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 21
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 21
Branch analysis from position: 36
Branch analysis from position: 21
filename:       /in/iZ7Fs
function name:  (null)
number of ops:  38
compiled vars:  !0 = $return, !1 = $base, !2 = $num, !3 = $result_62, !4 = $base_arr, !5 = $base_len, !6 = $result_62_arr, !7 = $result_62_len, !8 = $num_arr, !9 = $num_len
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, '01234567890'
    5     2        ASSIGN                                                   !2, 11112887
    6     3        ASSIGN                                                   !3, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    7     4        INIT_FCALL                                               'str_split'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $14     
          7        ASSIGN                                                   !4, $14
    8     8        ASSIGN                                                   !5, 10
   10     9        INIT_FCALL                                               'str_split'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $17     
         12        ASSIGN                                                   !6, $17
   11    13        ASSIGN                                                   !7, 62
   12    14        INIT_FCALL                                               'str_split'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $20     
         17        ASSIGN                                                   !8, $20
   13    18        STRLEN                                           ~22     !2
         19        ASSIGN                                                   !9, ~22
   15    20      > JMP                                                      ->34
   16    21    >   INIT_FCALL_BY_NAME                                       'bcmod'
         22        SEND_VAR_EX                                              !2
         23        SEND_VAL_EX                                              62
         24        DO_FCALL                                      0  $24     
         25        FETCH_DIM_R                                      ~25     !6, $24
         26        CONCAT                                           ~26     ~25, !0
         27        ASSIGN                                                   !0, ~26
   17    28        INIT_FCALL_BY_NAME                                       'bcdiv'
         29        SEND_VAR_EX                                              !2
         30        SEND_VAL_EX                                              62
         31        SEND_VAL_EX                                              0
         32        DO_FCALL                                      0  $28     
         33        ASSIGN                                                   !2, $28
   15    34    >   IS_NOT_EQUAL                                             !2, '0'
         35      > JMPNZ                                                    ~30, ->21
   19    36    >   ECHO                                                     !0
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.78 ms | 1388 KiB | 15 Q