3v4l.org

run code in 500+ PHP versions simultaneously
<?php $mystring = "aHR0cHM6Ly93d3cucGhwLm5ldC9tYW51YWwvZW4vZnVuY3Rpb24uc3RyLXNwbGl0LnBocA=="; $totalSegments = 4; $segments = []; while ($totalSegments) { --$totalSegments; $segmentLength = rand(1, strlen($mystring) - $totalSegments); [$segments[], $mystring] = sscanf($mystring, "%{$segmentLength}s%s"); } var_export($segments);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
Branch analysis from position: 4
filename:       /in/ce2VE
function name:  (null)
number of ops:  30
compiled vars:  !0 = $mystring, !1 = $totalSegments, !2 = $segments, !3 = $segmentLength
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'aHR0cHM6Ly93d3cucGhwLm5ldC9tYW51YWwvZW4vZnVuY3Rpb24uc3RyLXNwbGl0LnBocA%3D%3D'
    4     1        ASSIGN                                                       !1, 4
    6     2        ASSIGN                                                       !2, <array>
    7     3      > JMP                                                          ->25
    8     4    >   PRE_DEC                                                      !1
    9     5        INIT_FCALL                                                   'rand'
          6        SEND_VAL                                                     1
          7        STRLEN                                               ~8      !0
          8        SUB                                                  ~9      ~8, !1
          9        SEND_VAL                                                     ~9
         10        DO_ICALL                                             $10     
         11        ASSIGN                                                       !3, $10
   10    12        INIT_FCALL                                                   'sscanf'
         13        SEND_VAR                                                     !0
         14        ROPE_INIT                                         3  ~13     '%25'
         15        ROPE_ADD                                          1  ~13     ~13, !3
         16        ROPE_END                                          2  ~12     ~13, 's%25s'
         17        SEND_VAL                                                     ~12
         18        DO_ICALL                                             $15     
         19        FETCH_LIST_R                                         $16     $15, 0
         20        ASSIGN_DIM                                                   !2
         21        OP_DATA                                                      $16
         22        FETCH_LIST_R                                         $18     $15, 1
         23        ASSIGN                                                       !0, $18
         24        FREE                                                         $15
    7    25    > > JMPNZ                                                        !1, ->4
   13    26    >   INIT_FCALL                                                   'var_export'
         27        SEND_VAR                                                     !2
         28        DO_ICALL                                                     
         29      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.67 ms | 1447 KiB | 16 Q