3v4l.org

run code in 300+ PHP versions simultaneously
<?php include 'Mailer.php'; include 'Validator.php'; define("PREIS_PRO_250G", 6.20); define("PREIS_PRO_500G", 10.50); define("PORTO", 5.50); function calculateTotalPrice($menge250g, $menge500g) { $totalPrice = (PREIS_PRO_250G * $menge250g) + (PREIS_PRO_500G * $menge500g) + PORTO; $totalPrice = sprintf("%.2f", $totalPrice); return $totalPrice; } function createOKMessage($totalPrice){ $msg = '<span style="color:green"><br />Vielen Dank für Ihre Bestellung, wir werden Sie sofort nach Geldeingang bearbeiten!<br />Bitte überweisen Sie den Betrag von '; $msg .= $totalPrice; $msg .= ' EURO auf das in der E-Mail angegebene Konto.<br />'; return $msg; } function createCalcMessage($totalPrice){ $msg = '<span style="color:green"><br />Ihre aktuelle Bestellung würde '; $msg .= $totalPrice; $msg .= ' EURO kosten.<br />'; return $msg; } $name = trim(strip_tags($_POST['name'])); $email = trim(strip_tags($_POST['email'])); $strasse = trim(strip_tags($_POST['strasse'])); $plz = trim(strip_tags($_POST['plz'])); $stadt = trim(strip_tags($_POST['stadt'])); $menge250g = trim(strip_tags($_POST['menge250g'])); $menge500g = trim(strip_tags($_POST['menge500g'])); if (!isset($menge250g) or $menge250g == ""){ $menge250g = 0; } if (!isset($menge500g) or $menge500g == ""){ $menge500g = 0; } $message = NULL; $validator = new Validator(); if(isset($_POST['submit'])){ // Eingabe validieren $valid = $validator->validateInput($name, $email, $strasse, $plz, $stadt, $menge250g, $menge500g); if($valid){ // Konnte die Eingabe erfolgreich validiert werden, wird der entdgueltige Preis berechnet und // die Email an den Kunden versendet $totalPrice = calculateTotalPrice($menge250g, $menge500g); Mailer::sendToCustomer($name, $email, $strasse, $plz, $stadt, $menge250g, $menge500g, $totalPrice); $message = createOKMessage($totalPrice); $name = ""; $email = ""; $strasse = ""; $plz = ""; $stadt = ""; $menge250g = 0; $menge500g = 0; } else{ // Im Fehlerfall werden die Fehlermeldungen ausgegeben $message = $validator->getErrorMessages(); } } if(isset($_POST['calc'])){ $totalPrice = calculateTotalPrice($menge250g, $menge500g); $message = createCalcMessage($totalPrice); } ?> <!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" /> <style type="text/css"> <!-- body,td,th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; } .Stil3 { font-size: 10px } body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } .Stil4 { color: #000000; background-image: none; background-position: left top; } --> </style> </head> <body style="background-color: transparent;"> <form name="Bestellformular" action="<? echo $_SERVER['file:///PHP_SELF']; ?>" method="post"> <table width="380" align="left"> <tr> <td width="160"><strong>Ihr Name:</strong></td> <td width="208"><input name="name" type="text" value="<? echo $name; ?>" size="26" maxlength="100" /></td> </tr> <tr> <td width="160"><strong>E-Mail:</strong><br /> </td> <td><input name="email" type="text" id="email" value="<? echo $email; ?>" size="26" maxlength="100" /></td> </tr> <tr> <td width="160">&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td width="160"><strong>Lieferanschrift</strong><br /> </td> <td>&nbsp;</td> </tr> <tr> <td width="160"><strong>Strasse / Hausnummer</strong><br /> </td> <td><input name="strasse" type="text" id="strasse" value="<? echo $strasse; ?>" size="26" maxlength="100" /></td> </tr> <tr> <td width="160"><strong>Postleitzahl</strong><br /> </td> <td><input name="plz" type="text" id="plz" value="<? echo $plz; ?>" size="26" maxlength="5" /></td> </tr> <tr> <td width="160"><strong>Stadt</strong><br /> </td> <td><input name="stadt" type="text" id="stadt" value="<? echo $stadt; ?>" size="26" maxlength="100" /></td> </tr> <tr> <td width="160">&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td><strong>Päckchen</strong><br /> </td> <td>&nbsp;</td> </tr> <tr> <td><strong>Menge a 250g zu je 6,20€:</strong><br /> </td> <td><input name="menge250g" type="text" id="menge250g" value="<? echo $menge250g; ?>" size="26" maxlength="1" /></td> </tr> <tr> <td><strong>Menge a 500g zu je 10,50€:</strong><br /> </td> <td><input name="menge500g" type="text" id="menge500g" value="<? echo $menge500g; ?>" size="26" maxlength="1" /></td> </tr> <tr> <td width="160">&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td width="160"><strong>Versandpauschale 5,50€</strong></td> <td>&nbsp;</td> </tr> <tr> <td width="160">&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td colspan="2"><?echo $message;?></td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" value="Abschicken" name="submit" /></td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" value="Berechnen" name="calc" /></td> </tr> </table> </form> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 80, Position 2 = 82
Branch analysis from position: 80
2 jumps found. (Code = 43) Position 1 = 83, Position 2 = 84
Branch analysis from position: 83
2 jumps found. (Code = 47) Position 1 = 87, Position 2 = 89
Branch analysis from position: 87
2 jumps found. (Code = 43) Position 1 = 90, Position 2 = 91
Branch analysis from position: 90
2 jumps found. (Code = 43) Position 1 = 98, Position 2 = 139
Branch analysis from position: 98
2 jumps found. (Code = 43) Position 1 = 109, Position 2 = 136
Branch analysis from position: 109
1 jumps found. (Code = 42) Position 1 = 139
Branch analysis from position: 139
2 jumps found. (Code = 43) Position 1 = 142, Position 2 = 151
Branch analysis from position: 142
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 151
Branch analysis from position: 136
2 jumps found. (Code = 43) Position 1 = 142, Position 2 = 151
Branch analysis from position: 142
Branch analysis from position: 151
Branch analysis from position: 139
Branch analysis from position: 91
Branch analysis from position: 89
Branch analysis from position: 84
Branch analysis from position: 82
filename:       /in/6LFsg
function name:  (null)
number of ops:  173
compiled vars:  !0 = $name, !1 = $email, !2 = $strasse, !3 = $plz, !4 = $stadt, !5 = $menge250g, !6 = $menge500g, !7 = $message, !8 = $validator, !9 = $valid, !10 = $totalPrice
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'Mailer.php', INCLUDE
    3     1        INCLUDE_OR_EVAL                                          'Validator.php', INCLUDE
    5     2        INIT_FCALL                                               'define'
          3        SEND_VAL                                                 'PREIS_PRO_250G'
          4        SEND_VAL                                                 6.2
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'define'
          7        SEND_VAL                                                 'PREIS_PRO_500G'
          8        SEND_VAL                                                 10.5
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'define'
         11        SEND_VAL                                                 'PORTO'
         12        SEND_VAL                                                 5.5
         13        DO_ICALL                                                 
   32    14        INIT_FCALL                                               'trim'
         15        INIT_FCALL                                               'strip_tags'
         16        FETCH_R                      global              ~16     '_POST'
         17        FETCH_DIM_R                                      ~17     ~16, 'name'
         18        SEND_VAL                                                 ~17
         19        DO_ICALL                                         $18     
         20        SEND_VAR                                                 $18
         21        DO_ICALL                                         $19     
         22        ASSIGN                                                   !0, $19
   33    23        INIT_FCALL                                               'trim'
         24        INIT_FCALL                                               'strip_tags'
         25        FETCH_R                      global              ~21     '_POST'
         26        FETCH_DIM_R                                      ~22     ~21, 'email'
         27        SEND_VAL                                                 ~22
         28        DO_ICALL                                         $23     
         29        SEND_VAR                                                 $23
         30        DO_ICALL                                         $24     
         31        ASSIGN                                                   !1, $24
   34    32        INIT_FCALL                                               'trim'
         33        INIT_FCALL                                               'strip_tags'
         34        FETCH_R                      global              ~26     '_POST'
         35        FETCH_DIM_R                                      ~27     ~26, 'strasse'
         36        SEND_VAL                                                 ~27
         37        DO_ICALL                                         $28     
         38        SEND_VAR                                                 $28
         39        DO_ICALL                                         $29     
         40        ASSIGN                                                   !2, $29
   35    41        INIT_FCALL                                               'trim'
         42        INIT_FCALL                                               'strip_tags'
         43        FETCH_R                      global              ~31     '_POST'
         44        FETCH_DIM_R                                      ~32     ~31, 'plz'
         45        SEND_VAL                                                 ~32
         46        DO_ICALL                                         $33     
         47        SEND_VAR                                                 $33
         48        DO_ICALL                                         $34     
         49        ASSIGN                                                   !3, $34
   36    50        INIT_FCALL                                               'trim'
         51        INIT_FCALL                                               'strip_tags'
         52        FETCH_R                      global              ~36     '_POST'
         53        FETCH_DIM_R                                      ~37     ~36, 'stadt'
         54        SEND_VAL                                                 ~37
         55        DO_ICALL                                         $38     
         56        SEND_VAR                                                 $38
         57        DO_ICALL                                         $39     
         58        ASSIGN                                                   !4, $39
   37    59        INIT_FCALL                                               'trim'
         60        INIT_FCALL                                               'strip_tags'
         61        FETCH_R                      global              ~41     '_POST'
         62        FETCH_DIM_R                                      ~42     ~41, 'menge250g'
         63        SEND_VAL                                                 ~42
         64        DO_ICALL                                         $43     
         65        SEND_VAR                                                 $43
         66        DO_ICALL                                         $44     
         67        ASSIGN                                                   !5, $44
   38    68        INIT_FCALL                                               'trim'
         69        INIT_FCALL                                               'strip_tags'
         70        FETCH_R                      global              ~46     '_POST'
         71        FETCH_DIM_R                                      ~47     ~46, 'menge500g'
         72        SEND_VAL                                                 ~47
         73        DO_ICALL                                         $48     
         74        SEND_VAR                                                 $48
         75        DO_ICALL                                         $49     
         76        ASSIGN                                                   !6, $49
   40    77        ISSET_ISEMPTY_CV                                 ~51     !5
         78        BOOL_NOT                                         ~52     ~51
         79      > JMPNZ_EX                                         ~52     ~52, ->82
         80    >   IS_EQUAL                                         ~53     !5, ''
         81        BOOL                                             ~52     ~53
         82    > > JMPZ                                                     ~52, ->84
   41    83    >   ASSIGN                                                   !5, 0
   44    84    >   ISSET_ISEMPTY_CV                                 ~55     !6
         85        BOOL_NOT                                         ~56     ~55
         86      > JMPNZ_EX                                         ~56     ~56, ->89
         87    >   IS_EQUAL                                         ~57     !6, ''
         88        BOOL                                             ~56     ~57
         89    > > JMPZ                                                     ~56, ->91
   45    90    >   ASSIGN                                                   !6, 0
   48    91    >   ASSIGN                                                   !7, null
   49    92        NEW                                              $60     'Validator'
         93        DO_FCALL                                      0          
         94        ASSIGN                                                   !8, $60
   51    95        FETCH_IS                                         ~63     '_POST'
         96        ISSET_ISEMPTY_DIM_OBJ                         0          ~63, 'submit'
         97      > JMPZ                                                     ~64, ->139
   53    98    >   INIT_METHOD_CALL                                         !8, 'validateInput'
         99        SEND_VAR_EX                                              !0
        100        SEND_VAR_EX                                              !1
        101        SEND_VAR_EX                                              !2
        102        SEND_VAR_EX                                              !3
        103        SEND_VAR_EX                                              !4
        104        SEND_VAR_EX                                              !5
        105        SEND_VAR_EX                                              !6
        106        DO_FCALL                                      0  $65     
        107        ASSIGN                                                   !9, $65
   55   108      > JMPZ                                                     !9, ->136
   58   109    >   INIT_FCALL                                               'calculatetotalprice'
        110        SEND_VAR                                                 !5
        111        SEND_VAR                                                 !6
        112        DO_FCALL                                      0  $67     
        113        ASSIGN                                                   !10, $67
   59   114        INIT_STATIC_METHOD_CALL                                  'Mailer', 'sendToCustomer'
        115        SEND_VAR_EX                                              !0
        116        SEND_VAR_EX                                              !1
        117        SEND_VAR_EX                                              !2
        118        SEND_VAR_EX                                              !3
        119        SEND_VAR_EX                                              !4
        120        SEND_VAR_EX                                              !5
        121        SEND_VAR_EX                                              !6
        122        SEND_VAR_EX                                              !10
        123        DO_FCALL                                      0          
   60   124        INIT_FCALL                                               'createokmessage'
        125        SEND_VAR                                                 !10
        126        DO_FCALL                                      0  $70     
        127        ASSIGN                                                   !7, $70
   62   128        ASSIGN                                                   !0, ''
   63   129        ASSIGN                                                   !1, ''
   64   130        ASSIGN                                                   !2, ''
   65   131        ASSIGN                                                   !3, ''
   66   132        ASSIGN                                                   !4, ''
   67   133        ASSIGN                                                   !5, 0
   68   134        ASSIGN                                                   !6, 0
        135      > JMP                                                      ->139
   72   136    >   INIT_METHOD_CALL                                         !8, 'getErrorMessages'
        137        DO_FCALL                                      0  $79     
        138        ASSIGN                                                   !7, $79
   76   139    >   FETCH_IS                                         ~81     '_POST'
        140        ISSET_ISEMPTY_DIM_OBJ                         0          ~81, 'calc'
        141      > JMPZ                                                     ~82, ->151
   77   142    >   INIT_FCALL                                               'calculatetotalprice'
        143        SEND_VAR                                                 !5
        144        SEND_VAR                                                 !6
        145        DO_FCALL                                      0  $83     
        146        ASSIGN                                                   !10, $83
   78   147        INIT_FCALL                                               'createcalcmessage'
        148        SEND_VAR                                                 !10
        149        DO_FCALL                                      0  $85     
        150        ASSIGN                                                   !7, $85
   81   151    >   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%3Chead%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DUTF-8%22+%2F%3E%0A%3Cstyle+type%3D%22text%2Fcss%22%3E%0A%3C%21--%0Abody%2Ctd%2Cth+%7B%0A%09font-family%3A+Arial%2C+Helvetica%2C+sans-serif%3B%0A%09font-size%3A+12px%3B%0A%09color%3A+%23000000%3B%0A%7D%0A%0A.Stil3+%7B%0A%09font-size%3A+10px%0A%7D%0A%0Abody+%7B%0A%09margin-left%3A+0px%3B%0A%09margin-top%3A+0px%3B%0A%09margin-right%3A+0px%3B%0A%09margin-bottom%3A+0px%3B%0A%7D%0A%0A.Stil4+%7B%0A%09color%3A+%23000000%3B%0A%09background-image%3A+none%3B%0A%09background-position%3A+left+top%3B%0A%7D%0A--%3E%0A%3C%2Fstyle%3E%0A%3C%2Fhead%3E%0A%3Cbody+style%3D%22background-color%3A+transparent%3B%22%3E%0A%3Cform+name%3D%22Bestellformular%22%0A%09action%3D%22'
  114   152        FETCH_R                      global              ~87     '_SERVER'
        153        FETCH_DIM_R                                      ~88     ~87, 'file%3A%2F%2F%2FPHP_SELF'
        154        ECHO                                                     ~88
        155        ECHO                                                     '%22+method%3D%22post%22%3E%0A%3Ctable+width%3D%22380%22+align%3D%22left%22%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%3Cstrong%3EIhr+Name%3A%3C%2Fstrong%3E%3C%2Ftd%3E%0A%09%09%3Ctd+width%3D%22208%22%3E%3Cinput+name%3D%22name%22+type%3D%22text%22%0A%09%09%09value%3D%22'
  119   156        ECHO                                                     !0
        157        ECHO                                                     '%22+size%3D%2226%22+maxlength%3D%22100%22+%2F%3E%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%3Cstrong%3EE-Mail%3A%3C%2Fstrong%3E%3Cbr+%2F%3E%0A%09%09%3C%2Ftd%3E%0A%09%09%3Ctd%3E%3Cinput+name%3D%22email%22+type%3D%22text%22+id%3D%22email%22%0A%09%09%09value%3D%22'
  125   158        ECHO                                                     !1
        159        ECHO                                                     '%22+size%3D%2226%22+maxlength%3D%22100%22+%2F%3E%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%09%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%3Cstrong%3ELieferanschrift%3C%2Fstrong%3E%3Cbr+%2F%3E%0A%09%09%3C%2Ftd%3E%0A%09%09%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%3Cstrong%3EStrasse+%2F+Hausnummer%3C%2Fstrong%3E%3Cbr+%2F%3E%0A%09%09%3C%2Ftd%3E%0A%09%09%3Ctd%3E%3Cinput+name%3D%22strasse%22+type%3D%22text%22+id%3D%22strasse%22%0A%09%09%09value%3D%22'
  140   160        ECHO                                                     !2
        161        ECHO                                                     '%22+size%3D%2226%22+maxlength%3D%22100%22+%2F%3E%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%3Cstrong%3EPostleitzahl%3C%2Fstrong%3E%3Cbr+%2F%3E%0A%09%09%3C%2Ftd%3E%0A%09%09%3Ctd%3E%3Cinput+name%3D%22plz%22+type%3D%22text%22+id%3D%22plz%22+value%3D%22'
  145   162        ECHO                                                     !3
        163        ECHO                                                     '%22%0A%09%09%09size%3D%2226%22+maxlength%3D%225%22+%2F%3E%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%3Cstrong%3EStadt%3C%2Fstrong%3E%3Cbr+%2F%3E%0A%09%09%3C%2Ftd%3E%0A%09%09%3Ctd%3E%3Cinput+name%3D%22stadt%22+type%3D%22text%22+id%3D%22stadt%22%0A%09%09%09value%3D%22'
  152   164        ECHO                                                     !4
        165        ECHO                                                     '%22+size%3D%2226%22+maxlength%3D%22100%22+%2F%3E%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%09%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd%3E%3Cstrong%3EP%C3%A4ckchen%3C%2Fstrong%3E%3Cbr+%2F%3E%0A%09%09%3C%2Ftd%3E%0A%09%09%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd%3E%3Cstrong%3EMenge+a+250g+zu+je+6%2C20%E2%82%AC%3A%3C%2Fstrong%3E%3Cbr+%2F%3E%0A%09%09%3C%2Ftd%3E%0A%09%09%3Ctd%3E%3Cinput+name%3D%22menge250g%22+type%3D%22text%22+id%3D%22menge250g%22%0A%09%09%09value%3D%22'
  167   166        ECHO                                                     !5
        167        ECHO                                                     '%22+size%3D%2226%22+maxlength%3D%221%22+%2F%3E%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd%3E%3Cstrong%3EMenge+a+500g+zu+je+10%2C50%E2%82%AC%3A%3C%2Fstrong%3E%3Cbr+%2F%3E%0A%09%09%3C%2Ftd%3E%0A%09%09%3Ctd%3E%3Cinput+name%3D%22menge500g%22+type%3D%22text%22+id%3D%22menge500g%22%0A%09%09%09value%3D%22'
  173   168        ECHO                                                     !6
        169        ECHO                                                     '%22+size%3D%2226%22+maxlength%3D%221%22+%2F%3E%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%09%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%3Cstrong%3EVersandpauschale+5%2C50%E2%82%AC%3C%2Fstrong%3E%3C%2Ftd%3E%0A%09%09%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+width%3D%22160%22%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%09%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd+colspan%3D%222%22%3E'
  188   170        ECHO                                                     !7
        171        ECHO                                                     '%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%09%3Ctd%3E%3Cinput+type%3D%22submit%22+value%3D%22Abschicken%22+name%3D%22submit%22+%2F%3E%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%09%3Ctr%3E%0A%09%09%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A%09%09%3Ctd%3E%3Cinput+type%3D%22submit%22+value%3D%22Berechnen%22+name%3D%22calc%22+%2F%3E%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%3C%2Ftable%3E%0A%3C%2Fform%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
  201   172      > RETURN                                                   1

Function calculatetotalprice:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6LFsg
function name:  calculateTotalPrice
number of ops:  17
compiled vars:  !0 = $menge250g, !1 = $menge500g, !2 = $totalPrice
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        FETCH_CONSTANT                                   ~3      'PREIS_PRO_250G'
          3        MUL                                              ~4      !0, ~3
          4        FETCH_CONSTANT                                   ~5      'PREIS_PRO_500G'
          5        MUL                                              ~6      !1, ~5
          6        ADD                                              ~7      ~4, ~6
          7        FETCH_CONSTANT                                   ~8      'PORTO'
          8        ADD                                              ~9      ~7, ~8
          9        ASSIGN                                                   !2, ~9
   11    10        INIT_FCALL                                               'sprintf'
         11        SEND_VAL                                                 '%25.2f'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !2, $11
   13    15      > RETURN                                                   !2
   14    16*     > RETURN                                                   null

End of function calculatetotalprice

Function createokmessage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6LFsg
function name:  createOKMessage
number of ops:  6
compiled vars:  !0 = $totalPrice, !1 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   17     1        ASSIGN                                                   !1, '%3Cspan+style%3D%22color%3Agreen%22%3E%3Cbr+%2F%3EVielen+Dank+f%C3%BCr+Ihre+Bestellung%2C+wir+werden+Sie+sofort+nach+Geldeingang+bearbeiten%21%3Cbr+%2F%3EBitte+%C3%BCberweisen+Sie+den+Betrag+von+'
   18     2        ASSIGN_OP                                     8          !1, !0
   19     3        ASSIGN_OP                                     8          !1, '+EURO+auf+das+in+der+E-Mail+angegebene+Konto.%3Cbr+%2F%3E'
   21     4      > RETURN                                                   !1
   22     5*     > RETURN                                                   null

End of function createokmessage

Function createcalcmessage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6LFsg
function name:  createCalcMessage
number of ops:  6
compiled vars:  !0 = $totalPrice, !1 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
   25     1        ASSIGN                                                   !1, '%3Cspan+style%3D%22color%3Agreen%22%3E%3Cbr+%2F%3EIhre+aktuelle+Bestellung+w%C3%BCrde+'
   26     2        ASSIGN_OP                                     8          !1, !0
   27     3        ASSIGN_OP                                     8          !1, '+EURO+kosten.%3Cbr+%2F%3E'
   29     4      > RETURN                                                   !1
   30     5*     > RETURN                                                   null

End of function createcalcmessage

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.85 ms | 1427 KiB | 25 Q