3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 11111111; $return = ''; $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); $return = $result_62_arr[(intval($num)%62)].$return; $num = $num/62; } echo substr($return,-4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/eaBSD
function name:  (null)
number of ops:  23
compiled vars:  !0 = $num, !1 = $return, !2 = $result_62, !3 = $result_62_arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 11111111
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    5     3        INIT_FCALL                                               'str_split'
          4        SEND_VAR                                                 !2
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !3, $7
    6     7      > JMP                                                      ->15
    9     8    >   CAST                                          4  ~9      !0
          9        MOD                                              ~10     ~9, 62
         10        FETCH_DIM_R                                      ~11     !3, ~10
         11        CONCAT                                           ~12     ~11, !1
         12        ASSIGN                                                   !1, ~12
   10    13        DIV                                              ~14     !0, 62
         14        ASSIGN                                                   !0, ~14
    6    15    >   IS_NOT_EQUAL                                             !0, 0
         16      > JMPNZ                                                    ~16, ->8
   12    17    >   INIT_FCALL                                               'substr'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 -4
         20        DO_ICALL                                         $17     
         21        ECHO                                                     $17
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.59 ms | 1387 KiB | 17 Q