3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr =array(); for($x = 1; $x < 6; $x++){ //set each white ball variable (a through e) to a random number between 1 and 69 While (count($arr) != 5){ $arr[] = floor((lcg_value() * 6 + 1)); $arr = array_unique($arr); } //set powerball number variable to a number between 1 and 26 $f = floor((lcg_value() * 26 + 1)); Var_dump($arr); //echo all white ball numbers and powerball number //echo "<b><u>Set #" . $x . "</u></b> - <b>White ball numbers are: </b>" . $a . " , " . $b . " , " . $c . " , " . $d . " , " . $e . ". <b>Powerball Number is </b>" . $f . ".<br />"; };
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 3
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 3
Branch analysis from position: 34
Branch analysis from position: 3
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
Branch analysis from position: 4
filename:       /in/odOqb
function name:  (null)
number of ops:  35
compiled vars:  !0 = $arr, !1 = $x, !2 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->32
    6     3    > > JMP                                                      ->17
    8     4    >   INIT_FCALL                                               'floor'
          5        INIT_FCALL                                               'lcg_value'
          6        DO_ICALL                                         $6      
          7        MUL                                              ~7      $6, 6
          8        ADD                                              ~8      ~7, 1
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                         $9      
         11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  $9
    9    13        INIT_FCALL                                               'array_unique'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !0, $10
    6    17    >   COUNT                                            ~12     !0
         18        IS_NOT_EQUAL                                             ~12, 5
         19      > JMPNZ                                                    ~13, ->4
   13    20    >   INIT_FCALL                                               'floor'
         21        INIT_FCALL                                               'lcg_value'
         22        DO_ICALL                                         $14     
         23        MUL                                              ~15     $14, 26
         24        ADD                                              ~16     ~15, 1
         25        SEND_VAL                                                 ~16
         26        DO_ICALL                                         $17     
         27        ASSIGN                                                   !2, $17
   15    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                                 
    3    31        PRE_INC                                                  !1
         32    >   IS_SMALLER                                               !1, 6
         33      > JMPNZ                                                    ~21, ->3
   18    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.42 ms | 1006 KiB | 17 Q