3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>Mailformulier </title> </head> <body> <?php ini_set("SMTP", "mail.live.com"); ini_set("smtp_poort", 25); ini_set("sendmail_from", "mailadres"); if($_POST["verzendbutton"] != "verzenden" || !$_POST["naam"] || !$_POST["mailadres"] || !$_POST["reactie"]) { // dus als het formulier leeg is of de waarde niet zijn ingevuld ?> <form action="mailform3.php" method = "post"> <?php if ($_POST["verzendbutton"] && !$_POST["naam"] && !$_POST["mailadres"] || !$_POST["reactie"]) { echo "<font color=\"red\"> Vul hier uw mailadres in</font><br>"; } ?> naam: <input type = "text" name = "naam" value ="<?php echo $_POST =["naam"] ?>"><br> <?php if ($_POST["verzendbutton"] && !$_POST["mailadres"]) { echo "<font color =\"red\"> Vul hier uw mailadres in!</font><br>"; } ?> E-mail: <input type = "text" name ="mailadres" value="<?php echo $_POST["mailadres"] ?>"><br> <?php if ($_POST["verzendbutton"] && !$_POST["reactie"]) { echo "<font color=\"red\">Vul hier uw reactie in!</font<br>"; } ?> Uw reactie": <textarea cols="30"rows ="4" name="reactie"><?php echo $_POST["reactie"] ?> </textarea> <input type = "submit" value ="verzenden" name ="verzendbutton"> </form> <?php } else { $boodschap = "Naam: ".$_POST["naam"]."\ncommentaar: ".$_POST["reacrie"]; mail($_POST["mailadres"], "Uw reactie van de website", $boodschap); echo "Bedankt ".$_POST["naam"].", fijn dat je mee wilde doen!"; } ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
2 jumps found. (Code = 47) Position 1 = 22, Position 2 = 26
Branch analysis from position: 22
2 jumps found. (Code = 47) Position 1 = 27, Position 2 = 31
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 86
Branch analysis from position: 32
2 jumps found. (Code = 46) Position 1 = 36, Position 2 = 40
Branch analysis from position: 36
2 jumps found. (Code = 46) Position 1 = 41, Position 2 = 45
Branch analysis from position: 41
2 jumps found. (Code = 47) Position 1 = 46, Position 2 = 50
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 52
Branch analysis from position: 51
2 jumps found. (Code = 46) Position 1 = 60, Position 2 = 64
Branch analysis from position: 60
2 jumps found. (Code = 43) Position 1 = 65, Position 2 = 66
Branch analysis from position: 65
2 jumps found. (Code = 46) Position 1 = 74, Position 2 = 78
Branch analysis from position: 74
2 jumps found. (Code = 43) Position 1 = 79, Position 2 = 80
Branch analysis from position: 79
1 jumps found. (Code = 42) Position 1 = 106
Branch analysis from position: 106
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 80
Branch analysis from position: 78
Branch analysis from position: 66
Branch analysis from position: 64
Branch analysis from position: 52
Branch analysis from position: 50
Branch analysis from position: 45
Branch analysis from position: 40
Branch analysis from position: 86
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
Branch analysis from position: 26
Branch analysis from position: 21
filename:       /in/l5vO3
function name:  (null)
number of ops:  108
compiled vars:  !0 = $boodschap
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3EMailformulier+%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A'
    7     1        INIT_FCALL                                               'ini_set'
          2        SEND_VAL                                                 'SMTP'
          3        SEND_VAL                                                 'mail.live.com'
          4        DO_ICALL                                                 
    8     5        INIT_FCALL                                               'ini_set'
          6        SEND_VAL                                                 'smtp_poort'
          7        SEND_VAL                                                 25
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'ini_set'
         10        SEND_VAL                                                 'sendmail_from'
         11        SEND_VAL                                                 'mailadres'
         12        DO_ICALL                                                 
   10    13        FETCH_R                      global              ~4      '_POST'
         14        FETCH_DIM_R                                      ~5      ~4, 'verzendbutton'
         15        IS_NOT_EQUAL                                     ~6      ~5, 'verzenden'
         16      > JMPNZ_EX                                         ~6      ~6, ->21
         17    >   FETCH_R                      global              ~7      '_POST'
         18        FETCH_DIM_R                                      ~8      ~7, 'naam'
         19        BOOL_NOT                                         ~9      ~8
         20        BOOL                                             ~6      ~9
         21    > > JMPNZ_EX                                         ~6      ~6, ->26
   11    22    >   FETCH_R                      global              ~10     '_POST'
         23        FETCH_DIM_R                                      ~11     ~10, 'mailadres'
         24        BOOL_NOT                                         ~12     ~11
         25        BOOL                                             ~6      ~12
         26    > > JMPNZ_EX                                         ~6      ~6, ->31
   12    27    >   FETCH_R                      global              ~13     '_POST'
         28        FETCH_DIM_R                                      ~14     ~13, 'reactie'
         29        BOOL_NOT                                         ~15     ~14
         30        BOOL                                             ~6      ~15
         31    > > JMPZ                                                     ~6, ->86
   14    32    >   ECHO                                                     '%3Cform+action%3D%22mailform3.php%22+method+%3D+%22post%22%3E%0A'
   16    33        FETCH_R                      global              ~16     '_POST'
         34        FETCH_DIM_R                                      ~17     ~16, 'verzendbutton'
         35      > JMPZ_EX                                          ~17     ~17, ->40
         36    >   FETCH_R                      global              ~18     '_POST'
         37        FETCH_DIM_R                                      ~19     ~18, 'naam'
         38        BOOL_NOT                                         ~20     ~19
         39        BOOL                                             ~17     ~20
         40    > > JMPZ_EX                                          ~17     ~17, ->45
         41    >   FETCH_R                      global              ~21     '_POST'
         42        FETCH_DIM_R                                      ~22     ~21, 'mailadres'
         43        BOOL_NOT                                         ~23     ~22
         44        BOOL                                             ~17     ~23
         45    > > JMPNZ_EX                                         ~17     ~17, ->50
         46    >   FETCH_R                      global              ~24     '_POST'
         47        FETCH_DIM_R                                      ~25     ~24, 'reactie'
         48        BOOL_NOT                                         ~26     ~25
         49        BOOL                                             ~17     ~26
         50    > > JMPZ                                                     ~17, ->52
   17    51    >   ECHO                                                     '%3Cfont+color%3D%22red%22%3E+Vul+hier+uw+mailadres+in%3C%2Ffont%3E%3Cbr%3E'
   20    52    >   ECHO                                                     'naam%3A+%3Cinput+type+%3D+%22text%22+name+%3D+%22naam%22+value+%3D%22'
         53        FETCH_W                      global              $27     '_POST'
         54        ASSIGN                                           ~28     $27, <array>
         55        ECHO                                                     ~28
   21    56        ECHO                                                     '%22%3E%3Cbr%3E%0A'
   23    57        FETCH_R                      global              ~29     '_POST'
         58        FETCH_DIM_R                                      ~30     ~29, 'verzendbutton'
         59      > JMPZ_EX                                          ~30     ~30, ->64
         60    >   FETCH_R                      global              ~31     '_POST'
         61        FETCH_DIM_R                                      ~32     ~31, 'mailadres'
         62        BOOL_NOT                                         ~33     ~32
         63        BOOL                                             ~30     ~33
         64    > > JMPZ                                                     ~30, ->66
   24    65    >   ECHO                                                     '%3Cfont+color+%3D%22red%22%3E+Vul+hier+uw+mailadres+in%21%3C%2Ffont%3E%3Cbr%3E'
   28    66    >   ECHO                                                     'E-mail%3A+%3Cinput+type+%3D+%22text%22+name+%3D%22mailadres%22+value%3D%22'
         67        FETCH_R                      global              ~34     '_POST'
         68        FETCH_DIM_R                                      ~35     ~34, 'mailadres'
         69        ECHO                                                     ~35
         70        ECHO                                                     '%22%3E%3Cbr%3E%0A'
   30    71        FETCH_R                      global              ~36     '_POST'
         72        FETCH_DIM_R                                      ~37     ~36, 'verzendbutton'
         73      > JMPZ_EX                                          ~37     ~37, ->78
         74    >   FETCH_R                      global              ~38     '_POST'
         75        FETCH_DIM_R                                      ~39     ~38, 'reactie'
         76        BOOL_NOT                                         ~40     ~39
         77        BOOL                                             ~37     ~40
         78    > > JMPZ                                                     ~37, ->80
   31    79    >   ECHO                                                     '%3Cfont+color%3D%22red%22%3EVul+hier+uw+reactie+in%21%3C%2Ffont%3Cbr%3E'
   34    80    >   ECHO                                                     'Uw+reactie%22%3A+%3Ctextarea+cols%3D%2230%22rows+%3D%224%22+name%3D%22reactie%22%3E'
         81        FETCH_R                      global              ~41     '_POST'
         82        FETCH_DIM_R                                      ~42     ~41, 'reactie'
         83        ECHO                                                     ~42
         84        ECHO                                                     '+%3C%2Ftextarea%3E%0A%3Cinput+type+%3D+%22submit%22+value+%3D%22verzenden%22+name+%3D%22verzendbutton%22%3E%0A%3C%2Fform%3E%0A'
         85      > JMP                                                      ->106
   39    86    >   FETCH_R                      global              ~43     '_POST'
         87        FETCH_DIM_R                                      ~44     ~43, 'naam'
         88        CONCAT                                           ~45     'Naam%3A+', ~44
         89        CONCAT                                           ~46     ~45, '%0Acommentaar%3A+'
         90        FETCH_R                      global              ~47     '_POST'
         91        FETCH_DIM_R                                      ~48     ~47, 'reacrie'
         92        CONCAT                                           ~49     ~46, ~48
         93        ASSIGN                                                   !0, ~49
   40    94        INIT_FCALL                                               'mail'
         95        FETCH_R                      global              ~51     '_POST'
         96        FETCH_DIM_R                                      ~52     ~51, 'mailadres'
         97        SEND_VAL                                                 ~52
         98        SEND_VAL                                                 'Uw+reactie+van+de+website'
         99        SEND_VAR                                                 !0
        100        DO_ICALL                                                 
   41   101        FETCH_R                      global              ~54     '_POST'
        102        FETCH_DIM_R                                      ~55     ~54, 'naam'
        103        CONCAT                                           ~56     'Bedankt+', ~55
        104        CONCAT                                           ~57     ~56, '%2C+fijn+dat+je+mee+wilde+doen%21'
        105        ECHO                                                     ~57
   44   106    >   ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   45   107      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.14 ms | 1404 KiB | 17 Q