3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Grade Calculation</title> </head> <body> <form method="post"> <table> <tr> <td>Age:</td> <td><input type="text" name="age" id="age" /></td> </tr> <tr> <td>Resting Heart Rate: </td> <td><input type="text" name="RHR" id="RHR" /></td> </tr> </table> </form> <?php $thr = 0; if (!empty($_POST["age"])){ $age = $_POST["age"]; $rhr = $_POST["rhr"]; $thr = (((220 - $age) - $rhr) * .6) + $rhr; echo "Your training heart rate will be: " + $thr; } ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 19
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/uWRTP
function name:  (null)
number of ops:  21
compiled vars:  !0 = $thr, !1 = $age, !2 = $rhr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1.0+Transitional%2F%2FEN%22+%22http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional.dtd%22%3E%0A%3Chtml+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%0A%0A%3Chead%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Dutf-8%22+%2F%3E%0A%3Ctitle%3EGrade+Calculation%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%0A%3Cbody%3E%0A%3Cform+method%3D%22post%22%3E%0A%09%3Ctable%3E%0A%09%09%3Ctr%3E%0A%09%09%09%3Ctd%3EAge%3A%3C%2Ftd%3E%0A%09%09%09%3Ctd%3E%3Cinput+type%3D%22text%22+name%3D%22age%22+id%3D%22age%22+%2F%3E%3C%2Ftd%3E%0A%09%09%3C%2Ftr%3E%0A%09%09%3Ctr%3E%0A%09%09%09%3Ctd%3EResting+Heart+Rate%3A+%3C%2Ftd%3E%0A%09%09%09%3Ctd%3E%3Cinput+type%3D%22text%22+name%3D%22RHR%22+id%3D%22RHR%22+%2F%3E%3C%2Ftd%3E%0A%09%09%3C%2Ftr%3E%0A%09%3C%2Ftable%3E%0A%3C%2Fform%3E%0A%0A'
   24     1        ASSIGN                                                   !0, 0
   26     2        FETCH_IS                                         ~4      '_POST'
          3        ISSET_ISEMPTY_DIM_OBJ                         1  ~5      ~4, 'age'
          4        BOOL_NOT                                         ~6      ~5
          5      > JMPZ                                                     ~6, ->19
   27     6    >   FETCH_R                      global              ~7      '_POST'
          7        FETCH_DIM_R                                      ~8      ~7, 'age'
          8        ASSIGN                                                   !1, ~8
   28     9        FETCH_R                      global              ~10     '_POST'
         10        FETCH_DIM_R                                      ~11     ~10, 'rhr'
         11        ASSIGN                                                   !2, ~11
   30    12        SUB                                              ~13     220, !1
         13        SUB                                              ~14     ~13, !2
         14        MUL                                              ~15     ~14, 0.6
         15        ADD                                              ~16     ~15, !2
         16        ASSIGN                                                   !0, ~16
   32    17        ADD                                              ~18     'Your+training+heart+rate+will+be%3A+', !0
         18        ECHO                                                     ~18
   38    19    >   ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   40    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.16 ms | 1395 KiB | 13 Q