3v4l.org

run code in 300+ PHP versions simultaneously
<?php ?> <!DOCTYPE> <html> <body> <?php if(round > 0 && $guess == $number) : ?> <h1>[game <?php echo $last_round?> result]</h1> <br> user guessed <?php echo $guess;?>, the number was <?php echo $number;?> and the number <?php echo $number;?> came up <br> user got a win <?php else : ?> <h1>[game <?php echo $round?> result]</h1> user guessed <?php echo $guess;?>, the number was <?php echo $number;?> and the number <?php echo $number;?> came up <br> user got a loss <?php endif; ?> <br> <a href="reset.php">reset</a> <br> <h2>current score</h2> <br> <table> <tr><td>user</td><td><?php echo $scoreU;?></td></tr> <tr><td>computer</td><td><?php echo $scoreC;?></td></tr> </table> <br> <br> <h1>[game<?php echo $round;?>]</h1> <br> <h3>the next random number from 0-10 will be</h3> <br> <?php if(round/5 == 0) : ?> exactly <input type="text" name="guess"> <?php else : ?> <input type="button" name="higher"> higher than <?php ?> <input type="button" name="lower"> lower than <?php ?> <?php endif; ?> <button type="submit">make your guess</button> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 39
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 39
Branch analysis from position: 37
Branch analysis from position: 39
Branch analysis from position: 6
filename:       /in/kga7f
function name:  (null)
number of ops:  44
compiled vars:  !0 = $guess, !1 = $number, !2 = $last_round, !3 = $round, !4 = $scoreU, !5 = $scoreC
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     '%0A%3C%21DOCTYPE%3E%0A%3Chtml%3E%0A%3Cbody%3E%0A%09'
    8     1        FETCH_CONSTANT                                   ~6      'round'
          2        IS_SMALLER                                       ~7      0, ~6
          3      > JMPZ_EX                                          ~7      ~7, ->6
          4    >   IS_EQUAL                                         ~8      !0, !1
          5        BOOL                                             ~7      ~8
          6    > > JMPZ                                                     ~7, ->17
    9     7    >   ECHO                                                     '%09%3Ch1%3E%5Bgame+'
          8        ECHO                                                     !2
          9        ECHO                                                     '+result%5D%3C%2Fh1%3E%0A%09%09%3Cbr%3E%0A%09%09user+guessed+'
   11    10        ECHO                                                     !0
         11        ECHO                                                     '%2C+the+number+was+'
         12        ECHO                                                     !1
         13        ECHO                                                     '+and+the+number+'
         14        ECHO                                                     !1
         15        ECHO                                                     '+came+up%0A%09%09%3Cbr%3E%0A%09%09user+got+a+win%0A%09'
         16      > JMP                                                      ->26
   15    17    >   ECHO                                                     '%09%3Ch1%3E%5Bgame+'
         18        ECHO                                                     !3
         19        ECHO                                                     '+result%5D%3C%2Fh1%3E%0A%09%09user+guessed+'
   16    20        ECHO                                                     !0
         21        ECHO                                                     '%2C+the+number+was+'
         22        ECHO                                                     !1
         23        ECHO                                                     '+and+the+number+'
         24        ECHO                                                     !1
         25        ECHO                                                     '+came+up%0A%09%09%3Cbr%3E%0A%09%09user+got+a+loss%0A%09'
   20    26    >   ECHO                                                     '%09%3Cbr%3E%0A%0A%09%3Ca+href%3D%22reset.php%22%3Ereset%3C%2Fa%3E%0A%09%3Cbr%3E%0A%09%3Ch2%3Ecurrent+score%3C%2Fh2%3E%0A%09%3Cbr%3E%0A%09%3Ctable%3E%0A%09%09%3Ctr%3E%3Ctd%3Euser%3C%2Ftd%3E%3Ctd%3E'
   27    27        ECHO                                                     !4
         28        ECHO                                                     '%3C%2Ftd%3E%3C%2Ftr%3E%0A%09%09%3Ctr%3E%3Ctd%3Ecomputer%3C%2Ftd%3E%3Ctd%3E'
   28    29        ECHO                                                     !5
         30        ECHO                                                     '%3C%2Ftd%3E%3C%2Ftr%3E%0A%09%3C%2Ftable%3E%0A%0A%09%09%3Cbr%3E%0A%09%09%3Cbr%3E%0A%09%0A%09%09%3Ch1%3E%5Bgame'
   34    31        ECHO                                                     !3
         32        ECHO                                                     '%5D%3C%2Fh1%3E%0A%09%09%3Cbr%3E%0A%09%09%3Ch3%3Ethe+next+random+number+from+0-10+will+be%3C%2Fh3%3E%0A%09%09%3Cbr%3E%0A%09%0A%09%09'
   39    33        FETCH_CONSTANT                                   ~9      'round'
         34        DIV                                              ~10     ~9, 5
         35        IS_EQUAL                                                 ~10, 0
         36      > JMPZ                                                     ~11, ->39
   40    37    >   ECHO                                                     '%09%09%09exactly+%3Cinput+type%3D%22text%22+name%3D%22guess%22%3E%0A%09%09'
         38      > JMP                                                      ->42
   42    39    >   ECHO                                                     '%09%09%09%3Cinput+type%3D%22button%22+name%3D%22higher%22%3E+higher+than+'
   43    40        ECHO                                                     '%09%09%09%3Cinput+type%3D%22button%22+name%3D%22lower%22%3E+lower+than+'
   44    41        ECHO                                                     '%09%09'
         42    >   ECHO                                                     '%09%0A%09%0A%09%09%3Cbutton+type%3D%22submit%22%3Emake+your+guess%3C%2Fbutton%3E%0A%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   49    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.19 ms | 1399 KiB | 13 Q