3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rnd_arr = NULL; //Wahrscheinlichkeit 665 von 5624 for ($i=1; $i<=665; $i++) { $rnd_arr[] = "1:1"; } //Wahrscheinlichkeit 491 von 5624 for ($i=666; $i<=1157; $i++) { $rnd_arr[] = "2:1"; } //Wahrscheinlichkeit for ($i=1158; $i<=1630; $i++) { $rnd_arr[] = "1:0"; } //Wahrscheinlichkeit for ($i=1631; $i<=2068; $i++) { $rnd_arr[] = "2:0"; } //Wahrscheinlichkeit for ($i=2069; $i<=2450; $i++) { $rnd_arr[] = "0:0"; } for ($x=1; $x<=9; $x++) { echo $rnd_arr[array_rand($rnd_arr)]."<br>"; } ?>
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 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 10
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 17
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 24
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 31
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 38
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 38
Branch analysis from position: 47
Branch analysis from position: 38
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 31
Branch analysis from position: 36
Branch analysis from position: 31
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 24
Branch analysis from position: 29
Branch analysis from position: 24
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 17
Branch analysis from position: 22
Branch analysis from position: 17
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 10
Branch analysis from position: 15
Branch analysis from position: 10
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/Eq7Cr
function name:  (null)
number of ops:  48
compiled vars:  !0 = $rnd_arr, !1 = $i, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    4     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->6
    5     3    >   ASSIGN_DIM                                               !0
          4        OP_DATA                                                  '1%3A1'
    4     5        PRE_INC                                                  !1
          6    >   IS_SMALLER_OR_EQUAL                                      !1, 665
          7      > JMPNZ                                                    ~7, ->3
    9     8    >   ASSIGN                                                   !1, 666
          9      > JMP                                                      ->13
   10    10    >   ASSIGN_DIM                                               !0
         11        OP_DATA                                                  '2%3A1'
    9    12        PRE_INC                                                  !1
         13    >   IS_SMALLER_OR_EQUAL                                      !1, 1157
         14      > JMPNZ                                                    ~11, ->10
   14    15    >   ASSIGN                                                   !1, 1158
         16      > JMP                                                      ->20
   15    17    >   ASSIGN_DIM                                               !0
         18        OP_DATA                                                  '1%3A0'
   14    19        PRE_INC                                                  !1
         20    >   IS_SMALLER_OR_EQUAL                                      !1, 1630
         21      > JMPNZ                                                    ~15, ->17
   19    22    >   ASSIGN                                                   !1, 1631
         23      > JMP                                                      ->27
   20    24    >   ASSIGN_DIM                                               !0
         25        OP_DATA                                                  '2%3A0'
   19    26        PRE_INC                                                  !1
         27    >   IS_SMALLER_OR_EQUAL                                      !1, 2068
         28      > JMPNZ                                                    ~19, ->24
   24    29    >   ASSIGN                                                   !1, 2069
         30      > JMP                                                      ->34
   25    31    >   ASSIGN_DIM                                               !0
         32        OP_DATA                                                  '0%3A0'
   24    33        PRE_INC                                                  !1
         34    >   IS_SMALLER_OR_EQUAL                                      !1, 2450
         35      > JMPNZ                                                    ~23, ->31
   28    36    >   ASSIGN                                                   !2, 1
         37      > JMP                                                      ->45
   29    38    >   INIT_FCALL                                               'array_rand'
         39        SEND_VAR                                                 !0
         40        DO_ICALL                                         $25     
         41        FETCH_DIM_R                                      ~26     !0, $25
         42        CONCAT                                           ~27     ~26, '%3Cbr%3E'
         43        ECHO                                                     ~27
   28    44        PRE_INC                                                  !2
         45    >   IS_SMALLER_OR_EQUAL                                      !2, 9
         46      > JMPNZ                                                    ~29, ->38
   31    47    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.22 ms | 1400 KiB | 15 Q