3v4l.org

run code in 300+ 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:  47
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                                               'substr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 0
          6        INIT_FCALL                                               'rand'
          7        SEND_VAL                                                 1
          8        SUB                                              ~9      !1, 5
          9        SEND_VAL                                                 ~9
         10        DO_ICALL                                         $10     
         11        ASSIGN_DIM                                       ~8      !3
         12        OP_DATA                                                  $10
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                         $11     
         15        ASSIGN_DIM                                               !2
         16        OP_DATA                                                  $11
    7    17        INIT_FCALL                                               'substr'
         18        SEND_VAR                                                 !0
         19        FETCH_DIM_R                                      ~13     !3, 0
         20        SEND_VAL                                                 ~13
         21        INIT_FCALL                                               'rand'
         22        SEND_VAL                                                 1
         23        FETCH_DIM_R                                      ~15     !3, 0
         24        SUB                                              ~16     !1, ~15
         25        SUB                                              ~17     ~16, 3
         26        SEND_VAL                                                 ~17
         27        DO_ICALL                                         $18     
         28        ASSIGN_DIM                                       ~14     !3
         29        OP_DATA                                                  $18
         30        SEND_VAL                                                 ~14
         31        DO_ICALL                                         $19     
         32        ASSIGN_DIM                                               !2
         33        OP_DATA                                                  $19
    8    34        INIT_FCALL                                               'substr'
         35        SEND_VAR                                                 !0
         36        INIT_FCALL                                               'array_sum'
         37        SEND_VAR                                                 !3
         38        DO_ICALL                                         $21     
         39        SEND_VAR                                                 $21
         40        DO_ICALL                                         $22     
         41        ASSIGN_DIM                                               !2
         42        OP_DATA                                                  $22
   10    43        INIT_FCALL                                               'print_r'
         44        SEND_VAR                                                 !2
         45        DO_ICALL                                                 
         46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.2 ms | 1018 KiB | 17 Q