3v4l.org

run code in 300+ PHP versions simultaneously
<?php $old_arr=array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20); $size = count($old_arr); print_r($size); for($i=0;$i<=19;$i++){ if ($i<=4){ $a[] = $old_arr[$i]; }elseif ($i>4 && $i<=9){ $b[] = $old_arr[$i]; }elseif ($i>9 && $i<=14){ $c[] = $old_arr[$i]; }elseif ($i>14){ $d[] = $old_arr[$i]; } } print_r($a); print_r($b); print_r($c); print_r($d); $group_order[] = mt_rand(1,4); while(count($group_order)<4){ $x=mt_rand(1,4); if(in_array($group_order,$x) == false){ $group_order[] = $x; } } print_r($group_order); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 8
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 72
Branch analysis from position: 72
2 jumps found. (Code = 44) Position 1 = 75, Position 2 = 59
Branch analysis from position: 75
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 59
2 jumps found. (Code = 43) Position 1 = 70, Position 2 = 72
Branch analysis from position: 70
2 jumps found. (Code = 44) Position 1 = 75, Position 2 = 59
Branch analysis from position: 75
Branch analysis from position: 59
Branch analysis from position: 72
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 8
Branch analysis from position: 40
Branch analysis from position: 8
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 23
2 jumps found. (Code = 46) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 32
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 37
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 8
Branch analysis from position: 40
Branch analysis from position: 8
Branch analysis from position: 37
Branch analysis from position: 27
Branch analysis from position: 18
filename:       /in/LAchV
function name:  (null)
number of ops:  79
compiled vars:  !0 = $old_arr, !1 = $size, !2 = $i, !3 = $a, !4 = $b, !5 = $c, !6 = $d, !7 = $group_order, !8 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~10     !0
          2        ASSIGN                                                   !1, ~10
    5     3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    7     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->38
    8     8    >   IS_SMALLER_OR_EQUAL                                      !2, 4
          9      > JMPZ                                                     ~14, ->14
    9    10    >   FETCH_DIM_R                                      ~16     !0, !2
         11        ASSIGN_DIM                                               !3
         12        OP_DATA                                                  ~16
         13      > JMP                                                      ->37
   10    14    >   IS_SMALLER                                       ~17     4, !2
         15      > JMPZ_EX                                          ~17     ~17, ->18
         16    >   IS_SMALLER_OR_EQUAL                              ~18     !2, 9
         17        BOOL                                             ~17     ~18
         18    > > JMPZ                                                     ~17, ->23
   11    19    >   FETCH_DIM_R                                      ~20     !0, !2
         20        ASSIGN_DIM                                               !4
         21        OP_DATA                                                  ~20
         22      > JMP                                                      ->37
   12    23    >   IS_SMALLER                                       ~21     9, !2
         24      > JMPZ_EX                                          ~21     ~21, ->27
         25    >   IS_SMALLER_OR_EQUAL                              ~22     !2, 14
         26        BOOL                                             ~21     ~22
         27    > > JMPZ                                                     ~21, ->32
   13    28    >   FETCH_DIM_R                                      ~24     !0, !2
         29        ASSIGN_DIM                                               !5
         30        OP_DATA                                                  ~24
         31      > JMP                                                      ->37
   14    32    >   IS_SMALLER                                               14, !2
         33      > JMPZ                                                     ~25, ->37
   15    34    >   FETCH_DIM_R                                      ~27     !0, !2
         35        ASSIGN_DIM                                               !6
         36        OP_DATA                                                  ~27
    7    37    >   PRE_INC                                                  !2
         38    >   IS_SMALLER_OR_EQUAL                                      !2, 19
         39      > JMPNZ                                                    ~29, ->8
   18    40    >   INIT_FCALL                                               'print_r'
         41        SEND_VAR                                                 !3
         42        DO_ICALL                                                 
   19    43        INIT_FCALL                                               'print_r'
         44        SEND_VAR                                                 !4
         45        DO_ICALL                                                 
   20    46        INIT_FCALL                                               'print_r'
         47        SEND_VAR                                                 !5
         48        DO_ICALL                                                 
   21    49        INIT_FCALL                                               'print_r'
         50        SEND_VAR                                                 !6
         51        DO_ICALL                                                 
   23    52        INIT_FCALL                                               'mt_rand'
         53        SEND_VAL                                                 1
         54        SEND_VAL                                                 4
         55        DO_ICALL                                         $35     
         56        ASSIGN_DIM                                               !7
         57        OP_DATA                                                  $35
   24    58      > JMP                                                      ->72
   25    59    >   INIT_FCALL                                               'mt_rand'
         60        SEND_VAL                                                 1
         61        SEND_VAL                                                 4
         62        DO_ICALL                                         $36     
         63        ASSIGN                                                   !8, $36
   26    64        INIT_FCALL                                               'in_array'
         65        SEND_VAR                                                 !7
         66        SEND_VAR                                                 !8
         67        DO_ICALL                                         $38     
         68        BOOL_NOT                                         ~39     $38
         69      > JMPZ                                                     ~39, ->72
   27    70    >   ASSIGN_DIM                                               !7
         71        OP_DATA                                                  !8
   24    72    >   COUNT                                            ~41     !7
         73        IS_SMALLER                                               ~41, 4
         74      > JMPNZ                                                    ~42, ->59
   31    75    >   INIT_FCALL                                               'print_r'
         76        SEND_VAR                                                 !7
         77        DO_ICALL                                                 
   32    78      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.43 ms | 1404 KiB | 19 Q