3v4l.org

run code in 300+ PHP versions simultaneously
<?php function BallRand() { $ball1 = mt_rand(1,99); $ball2 = mt_rand(1,99); if($ball2 == $ball1): $ball2 = mt_rand(1,99); endif; $ball3 = mt_rand(1,99); if($ball3 == $ball1 || $ball3 == $ball2): $ball3 = mt_rand(1,99); endif; $ball4 = mt_rand(1,99); if($ball4 == $ball1 || $ball4 == $ball2 || $ball4 == $ball3): $ball4 = mt_rand(1,99); endif; $ball5 = mt_rand(1,99); if($ball5 == $ball1 || $ball5 == $ball2 || $ball5 == $ball3 || $ball5 == $ball4): $ball5 = mt_rand(1,99); endif; $bonus_ball = mt_rand(1,11); echo "$ball1#$ball2#$ball3#$ball4#$ball5|$bonus_ball\n"; echo "$ball1\n"; echo "$ball2\n"; echo "$ball3\n"; echo "$ball4\n"; echo "$ball5\n"; echo "$bonus_ball\n"; } echo BallRand() ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QHmFJ
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   INIT_FCALL                                               'ballrand'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
   37     3      > RETURN                                                   1

Function ballrand:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 47) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 32
Branch analysis from position: 27
2 jumps found. (Code = 47) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
2 jumps found. (Code = 47) Position 1 = 42, Position 2 = 44
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 50
Branch analysis from position: 45
2 jumps found. (Code = 47) Position 1 = 57, Position 2 = 59
Branch analysis from position: 57
2 jumps found. (Code = 47) Position 1 = 60, Position 2 = 62
Branch analysis from position: 60
2 jumps found. (Code = 47) Position 1 = 63, Position 2 = 65
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 71
Branch analysis from position: 66
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 71
Branch analysis from position: 65
Branch analysis from position: 62
Branch analysis from position: 59
Branch analysis from position: 50
Branch analysis from position: 44
Branch analysis from position: 41
Branch analysis from position: 32
Branch analysis from position: 26
Branch analysis from position: 17
filename:       /in/QHmFJ
function name:  BallRand
number of ops:  108
compiled vars:  !0 = $ball1, !1 = $ball2, !2 = $ball3, !3 = $ball4, !4 = $ball5, !5 = $bonus_ball
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'mt_rand'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 99
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !0, $6
    5     5        INIT_FCALL                                               'mt_rand'
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 99
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !1, $8
    6    10        IS_EQUAL                                                 !1, !0
         11      > JMPZ                                                     ~10, ->17
    7    12    >   INIT_FCALL                                               'mt_rand'
         13        SEND_VAL                                                 1
         14        SEND_VAL                                                 99
         15        DO_ICALL                                         $11     
         16        ASSIGN                                                   !1, $11
   10    17    >   INIT_FCALL                                               'mt_rand'
         18        SEND_VAL                                                 1
         19        SEND_VAL                                                 99
         20        DO_ICALL                                         $13     
         21        ASSIGN                                                   !2, $13
   11    22        IS_EQUAL                                         ~15     !2, !0
         23      > JMPNZ_EX                                         ~15     ~15, ->26
         24    >   IS_EQUAL                                         ~16     !2, !1
         25        BOOL                                             ~15     ~16
         26    > > JMPZ                                                     ~15, ->32
   12    27    >   INIT_FCALL                                               'mt_rand'
         28        SEND_VAL                                                 1
         29        SEND_VAL                                                 99
         30        DO_ICALL                                         $17     
         31        ASSIGN                                                   !2, $17
   15    32    >   INIT_FCALL                                               'mt_rand'
         33        SEND_VAL                                                 1
         34        SEND_VAL                                                 99
         35        DO_ICALL                                         $19     
         36        ASSIGN                                                   !3, $19
   16    37        IS_EQUAL                                         ~21     !3, !0
         38      > JMPNZ_EX                                         ~21     ~21, ->41
         39    >   IS_EQUAL                                         ~22     !3, !1
         40        BOOL                                             ~21     ~22
         41    > > JMPNZ_EX                                         ~21     ~21, ->44
         42    >   IS_EQUAL                                         ~23     !3, !2
         43        BOOL                                             ~21     ~23
         44    > > JMPZ                                                     ~21, ->50
   17    45    >   INIT_FCALL                                               'mt_rand'
         46        SEND_VAL                                                 1
         47        SEND_VAL                                                 99
         48        DO_ICALL                                         $24     
         49        ASSIGN                                                   !3, $24
   20    50    >   INIT_FCALL                                               'mt_rand'
         51        SEND_VAL                                                 1
         52        SEND_VAL                                                 99
         53        DO_ICALL                                         $26     
         54        ASSIGN                                                   !4, $26
   21    55        IS_EQUAL                                         ~28     !4, !0
         56      > JMPNZ_EX                                         ~28     ~28, ->59
         57    >   IS_EQUAL                                         ~29     !4, !1
         58        BOOL                                             ~28     ~29
         59    > > JMPNZ_EX                                         ~28     ~28, ->62
         60    >   IS_EQUAL                                         ~30     !4, !2
         61        BOOL                                             ~28     ~30
         62    > > JMPNZ_EX                                         ~28     ~28, ->65
         63    >   IS_EQUAL                                         ~31     !4, !3
         64        BOOL                                             ~28     ~31
         65    > > JMPZ                                                     ~28, ->71
   22    66    >   INIT_FCALL                                               'mt_rand'
         67        SEND_VAL                                                 1
         68        SEND_VAL                                                 99
         69        DO_ICALL                                         $32     
         70        ASSIGN                                                   !4, $32
   25    71    >   INIT_FCALL                                               'mt_rand'
         72        SEND_VAL                                                 1
         73        SEND_VAL                                                 11
         74        DO_ICALL                                         $34     
         75        ASSIGN                                                   !5, $34
   27    76        ROPE_INIT                                    12  ~37     !0
         77        ROPE_ADD                                      1  ~37     ~37, '%23'
         78        ROPE_ADD                                      2  ~37     ~37, !1
         79        ROPE_ADD                                      3  ~37     ~37, '%23'
         80        ROPE_ADD                                      4  ~37     ~37, !2
         81        ROPE_ADD                                      5  ~37     ~37, '%23'
         82        ROPE_ADD                                      6  ~37     ~37, !3
         83        ROPE_ADD                                      7  ~37     ~37, '%23'
         84        ROPE_ADD                                      8  ~37     ~37, !4
         85        ROPE_ADD                                      9  ~37     ~37, '%7C'
         86        ROPE_ADD                                     10  ~37     ~37, !5
         87        ROPE_END                                     11  ~36     ~37, '%0A'
         88        ECHO                                                     ~36
   29    89        NOP                                                      
         90        FAST_CONCAT                                      ~43     !0, '%0A'
         91        ECHO                                                     ~43
   30    92        NOP                                                      
         93        FAST_CONCAT                                      ~44     !1, '%0A'
         94        ECHO                                                     ~44
   31    95        NOP                                                      
         96        FAST_CONCAT                                      ~45     !2, '%0A'
         97        ECHO                                                     ~45
   32    98        NOP                                                      
         99        FAST_CONCAT                                      ~46     !3, '%0A'
        100        ECHO                                                     ~46
   33   101        NOP                                                      
        102        FAST_CONCAT                                      ~47     !4, '%0A'
        103        ECHO                                                     ~47
   34   104        NOP                                                      
        105        FAST_CONCAT                                      ~48     !5, '%0A'
        106        ECHO                                                     ~48
   35   107      > RETURN                                                   null

End of function ballrand

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 1407 KiB | 16 Q