3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); for ($i=1; $i<=100; $i++) { $arr[] = $i; } // 乱序 for ($i=0, $max=count($arr)*2; $i<$max; $i++) { $r1 = rand(0, 99); $r2 = rand(0, 99); $temp = $arr[$r1]; $arr[$r1] = $arr[$r2]; $arr[$r2] = $temp; } var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 13
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 13
Branch analysis from position: 33
Branch analysis from position: 13
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Branch analysis from position: 3
filename:       /in/DL054
function name:  (null)
number of ops:  37
compiled vars:  !0 = $arr, !1 = $i, !2 = $max, !3 = $r1, !4 = $r2, !5 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->6
    4     3    >   ASSIGN_DIM                                               !0
          4        OP_DATA                                                  !1
    3     5        PRE_INC                                                  !1
          6    >   IS_SMALLER_OR_EQUAL                                      !1, 100
          7      > JMPNZ                                                    ~10, ->3
    7     8    >   ASSIGN                                                   !1, 0
          9        COUNT                                            ~12     !0
         10        MUL                                              ~13     ~12, 2
         11        ASSIGN                                                   !2, ~13
         12      > JMP                                                      ->31
    8    13    >   INIT_FCALL                                               'rand'
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 99
         16        DO_ICALL                                         $15     
         17        ASSIGN                                                   !3, $15
    9    18        INIT_FCALL                                               'rand'
         19        SEND_VAL                                                 0
         20        SEND_VAL                                                 99
         21        DO_ICALL                                         $17     
         22        ASSIGN                                                   !4, $17
   10    23        FETCH_DIM_R                                      ~19     !0, !3
         24        ASSIGN                                                   !5, ~19
   11    25        FETCH_DIM_R                                      ~22     !0, !4
         26        ASSIGN_DIM                                               !0, !3
         27        OP_DATA                                                  ~22
   12    28        ASSIGN_DIM                                               !0, !4
         29        OP_DATA                                                  !5
    7    30        PRE_INC                                                  !1
         31    >   IS_SMALLER                                               !1, !2
         32      > JMPNZ                                                    ~25, ->13
   14    33    >   INIT_FCALL                                               'var_dump'
         34        SEND_VAR                                                 !0
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.47 ms | 1400 KiB | 17 Q