3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = array( 0 => '0', 1 => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5', 6 => '6', 7 => '7', 8 => '8', 9 => '9', 10 => 'A', 11 => 'B', 12 => 'C', 13 => 'D', 14 => 'E', 15 => 'F', 16 => 'G', 17 => 'H', 18 => 'I', 19 => 'J', 20 => 'K', 21 => 'L', 22 => 'M', 23 => 'N', 24 => 'O', 25 => 'P', 26 => 'Q', 27 => 'R', 28 => 'S', 29 => 'T', 30 => 'U', 31 => 'V', 32 => 'W', 33 => 'X', 34 => 'Y', 35 => 'Z', 36 => 'a', 37 => 'b', 38 => 'c', 39 => 'd', 40 => 'e', 41 => 'f', 42 => 'g', 43 => 'h', 44 => 'i', 45 => 'j', 46 => 'k', 47 => 'l', 48 => 'm', 49 => 'n', 50 => 'o', 51 => 'p', 52 => 'q', 53 => 'r', 54 => 's', 55 => 't', 56 => 'u', 57 => 'v', 58 => 'w', 59 => 'x', 60 => 'y', 61 => 'z', ); $value = 13000000; $link = array(); $rem = 0; $i = 0; do { $i++; $rem = $value % 62; $value = ($value - $rem) / 62; $link[$i] = $rem; } while($value > 0); $value = ''; $count = count($link); for ($i = 0; $i < $count; $i++) $value = $value . $chars[$link[$count - $i]]; for ($i = 0; $i < 4 - $count; $i++) $value = 0 . $value; echo $value;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 20
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 30
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 30
Branch analysis from position: 36
Branch analysis from position: 30
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 20
Branch analysis from position: 28
Branch analysis from position: 20
Branch analysis from position: 5
filename:       /in/S1rht
function name:  (null)
number of ops:  38
compiled vars:  !0 = $chars, !1 = $value, !2 = $link, !3 = $rem, !4 = $i, !5 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, 13000000
   12     2        ASSIGN                                                   !2, <array>
   13     3        ASSIGN                                                   !3, 0
   14     4        ASSIGN                                                   !4, 0
   18     5    >   PRE_INC                                                  !4
   19     6        MOD                                              ~12     !1, 62
          7        ASSIGN                                                   !3, ~12
   20     8        SUB                                              ~14     !1, !3
          9        DIV                                              ~15     ~14, 62
         10        ASSIGN                                                   !1, ~15
   21    11        ASSIGN_DIM                                               !2, !4
         12        OP_DATA                                                  !3
   22    13        IS_SMALLER                                               0, !1
         14      > JMPNZ                                                    ~18, ->5
   24    15    >   ASSIGN                                                   !1, ''
   25    16        COUNT                                            ~20     !2
         17        ASSIGN                                                   !5, ~20
   27    18        ASSIGN                                                   !4, 0
         19      > JMP                                                      ->26
   28    20    >   SUB                                              ~23     !5, !4
         21        FETCH_DIM_R                                      ~24     !2, ~23
         22        FETCH_DIM_R                                      ~25     !0, ~24
         23        CONCAT                                           ~26     !1, ~25
         24        ASSIGN                                                   !1, ~26
   27    25        PRE_INC                                                  !4
         26    >   IS_SMALLER                                               !4, !5
         27      > JMPNZ                                                    ~29, ->20
   30    28    >   ASSIGN                                                   !4, 0
         29      > JMP                                                      ->33
   31    30    >   CONCAT                                           ~31     '0', !1
         31        ASSIGN                                                   !1, ~31
   30    32        PRE_INC                                                  !4
         33    >   SUB                                              ~34     4, !5
         34        IS_SMALLER                                               !4, ~34
         35      > JMPNZ                                                    ~35, ->30
   33    36    >   ECHO                                                     !1
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.31 ms | 1399 KiB | 13 Q