3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "aHR0cHM6Ly93d3cnVuY3Rpb24uc3RyLXNwbGl0LnBocA=="; $devide = 3; $char = '*'; // that not used in your string $add = $devide - strlen($str)%$devide; $total = strlen($str) + $add; $str = str_pad($str,$total,$char,STR_PAD_LEFT); $result = str_split($str, $total/$devide ); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XDlTD
function name:  (null)
number of ops:  27
compiled vars:  !0 = $str, !1 = $devide, !2 = $char, !3 = $add, !4 = $total, !5 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'aHR0cHM6Ly93d3cnVuY3Rpb24uc3RyLXNwbGl0LnBocA%3D%3D'
    4     1        ASSIGN                                                       !1, 3
    5     2        ASSIGN                                                       !2, '%2A'
    7     3        STRLEN                                               ~9      !0
          4        MOD                                                  ~10     ~9, !1
          5        SUB                                                  ~11     !1, ~10
          6        ASSIGN                                                       !3, ~11
    8     7        STRLEN                                               ~13     !0
          8        ADD                                                  ~14     ~13, !3
          9        ASSIGN                                                       !4, ~14
   10    10        INIT_FCALL                                                   'str_pad'
         11        SEND_VAR                                                     !0
         12        SEND_VAR                                                     !4
         13        SEND_VAR                                                     !2
         14        SEND_VAL                                                     0
         15        DO_ICALL                                             $16     
         16        ASSIGN                                                       !0, $16
   12    17        INIT_FCALL                                                   'str_split'
         18        SEND_VAR                                                     !0
         19        DIV                                                  ~18     !4, !1
         20        SEND_VAL                                                     ~18
         21        DO_ICALL                                             $19     
         22        ASSIGN                                                       !5, $19
   14    23        INIT_FCALL                                                   'var_dump'
         24        SEND_VAR                                                     !5
         25        DO_ICALL                                                     
         26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.66 ms | 2063 KiB | 16 Q