3v4l.org

run code in 300+ PHP versions simultaneously
<?php $return = ''; $num = 11112887; $result_62 = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $result_62_arr = str_split($result_62); 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 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 8
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 8
Branch analysis from position: 23
Branch analysis from position: 8
filename:       /in/q7pRG
function name:  (null)
number of ops:  25
compiled vars:  !0 = $return, !1 = $num, !2 = $result_62, !3 = $result_62_arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, 11112887
    5     2        ASSIGN                                                   !2, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    7     3        INIT_FCALL                                               'str_split'
          4        SEND_VAR                                                 !2
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !3, $7
   10     7      > JMP                                                      ->21
   11     8    >   INIT_FCALL_BY_NAME                                       'bcmod'
          9        SEND_VAR_EX                                              !1
         10        SEND_VAL_EX                                              62
         11        DO_FCALL                                      0  $9      
         12        FETCH_DIM_R                                      ~10     !3, $9
         13        CONCAT                                           ~11     ~10, !0
         14        ASSIGN                                                   !0, ~11
   12    15        INIT_FCALL_BY_NAME                                       'bcdiv'
         16        SEND_VAR_EX                                              !1
         17        SEND_VAL_EX                                              62
         18        SEND_VAL_EX                                              0
         19        DO_FCALL                                      0  $13     
         20        ASSIGN                                                   !1, $13
   10    21    >   IS_NOT_EQUAL                                             !1, '0'
         22      > JMPNZ                                                    ~15, ->8
   14    23    >   ECHO                                                     !0
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.96 ms | 1400 KiB | 15 Q