3v4l.org

run code in 500+ PHP versions simultaneously
<?php $mystring = "aHR0cHM6Ly93d3cucGhwLm5ldC9tYW51YWwvZW4vZnVuY3Rpb24uc3RyLXNwbGl0LnBocA=="; $len=strlen($mystring); $parts[] = substr($mystring, 0, $l[] = rand(1,$len-5)); $parts[] = substr($mystring, $l[0], $l[] = rand(1,$len-$l[0]-3)); $parts[] = substr($mystring, array_sum($l)); print_r($parts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v4nUF
function name:  (null)
number of ops:  38
compiled vars:  !0 = $mystring, !1 = $len, !2 = $parts, !3 = $l
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'aHR0cHM6Ly93d3cucGhwLm5ldC9tYW51YWwvZW4vZnVuY3Rpb24uc3RyLXNwbGl0LnBocA%3D%3D'
    5     1        STRLEN                                               ~5      !0
          2        ASSIGN                                                       !1, ~5
    6     3        INIT_FCALL                                                   'rand'
          4        SEND_VAL                                                     1
          5        SUB                                                  ~9      !1, 5
          6        SEND_VAL                                                     ~9
          7        DO_ICALL                                             $10     
          8        ASSIGN_DIM                                           ~8      !3
          9        OP_DATA                                                      $10
         10        FRAMELESS_ICALL_3                substr              ~11     !0, 0
         11        OP_DATA                                                      ~8
         12        ASSIGN_DIM                                                   !2
         13        OP_DATA                                                      ~11
    7    14        FETCH_DIM_R                                          ~13     !3, 0
         15        INIT_FCALL                                                   'rand'
         16        SEND_VAL                                                     1
         17        FETCH_DIM_R                                          ~15     !3, 0
         18        SUB                                                  ~16     !1, ~15
         19        SUB                                                  ~17     ~16, 3
         20        SEND_VAL                                                     ~17
         21        DO_ICALL                                             $18     
         22        ASSIGN_DIM                                           ~14     !3
         23        OP_DATA                                                      $18
         24        FRAMELESS_ICALL_3                substr              ~19     !0, ~13
         25        OP_DATA                                                      ~14
         26        ASSIGN_DIM                                                   !2
         27        OP_DATA                                                      ~19
    8    28        INIT_FCALL                                                   'array_sum'
         29        SEND_VAR                                                     !3
         30        DO_ICALL                                             $21     
         31        FRAMELESS_ICALL_2                substr              ~22     !0, $21
         32        ASSIGN_DIM                                                   !2
         33        OP_DATA                                                      ~22
   10    34        INIT_FCALL                                                   'print_r'
         35        SEND_VAR                                                     !2
         36        DO_ICALL                                                     
         37      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.22 ms | 1288 KiB | 16 Q