3v4l.org

run code in 300+ PHP versions simultaneously
<?php $KEY_BASE = str_split("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"); $BASE = 62; $num = '11112887'; //$num = intval($num); //$num = array_map('intval',str_split($num)); $result = ''; $remainder = 0; /* foreach ($num as $digit) { $remainder = $digit%$BASE; echo 'remainder '.$remainder; echo 'key remainder '.$KEY_BASE[$remainder]; $result.=$KEY_BASE[$remainder]; //echo $digit; }*/ //echo $result; echo base_convert($num,10,62);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iLD6t
function name:  (null)
number of ops:  15
compiled vars:  !0 = $KEY_BASE, !1 = $BASE, !2 = $num, !3 = $result, !4 = $remainder
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_split'
          1        SEND_VAL                                                 '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    4     4        ASSIGN                                                   !1, 62
    5     5        ASSIGN                                                   !2, '11112887'
    8     6        ASSIGN                                                   !3, ''
    9     7        ASSIGN                                                   !4, 0
   19     8        INIT_FCALL                                               'base_convert'
          9        SEND_VAR                                                 !2
         10        SEND_VAL                                                 10
         11        SEND_VAL                                                 62
         12        DO_ICALL                                         $11     
         13        ECHO                                                     $11
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.38 ms | 1394 KiB | 17 Q