3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <?php if(isset($_POST['send'])){ if(empty($_POST['email']) || empty($_POST['subject']) || empty($_POST['text'])){ echo "all fields must be filled"; } else{ mail("yourmail@x.com", $_POST['subject'], $_POST['text']); echo "mail has been send"; } } ?><form method='post'><input type='text' name='email' placeholder='Email'></br> <input type='text' name='subject' placeholder='Subject'></br> <textarea rows="15" style="width:60%" name="text"> </textarea><br> <input type='submit' name='send' value='Send'></form> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 27
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 10
Branch analysis from position: 27
filename:       /in/17e4b
function name:  (null)
number of ops:  29
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A++++%3Cbody%3E%0A++++++++'
    4     1        FETCH_IS                                         ~0      '_POST'
          2        ISSET_ISEMPTY_DIM_OBJ                         0          ~0, 'send'
          3      > JMPZ                                                     ~1, ->27
    5     4    >   FETCH_IS                                         ~2      '_POST'
          5        ISSET_ISEMPTY_DIM_OBJ                         1  ~3      ~2, 'email'
          6      > JMPNZ_EX                                         ~3      ~3, ->10
          7    >   FETCH_IS                                         ~4      '_POST'
          8        ISSET_ISEMPTY_DIM_OBJ                         1  ~5      ~4, 'subject'
          9        BOOL                                             ~3      ~5
         10    > > JMPNZ_EX                                         ~3      ~3, ->14
         11    >   FETCH_IS                                         ~6      '_POST'
         12        ISSET_ISEMPTY_DIM_OBJ                         1  ~7      ~6, 'text'
         13        BOOL                                             ~3      ~7
         14    > > JMPZ                                                     ~3, ->17
    6    15    >   ECHO                                                     'all+fields+must+be+filled'
         16      > JMP                                                      ->27
    9    17    >   INIT_FCALL                                               'mail'
         18        SEND_VAL                                                 'yourmail%40x.com'
         19        FETCH_R                      global              ~8      '_POST'
         20        FETCH_DIM_R                                      ~9      ~8, 'subject'
         21        SEND_VAL                                                 ~9
         22        FETCH_R                      global              ~10     '_POST'
         23        FETCH_DIM_R                                      ~11     ~10, 'text'
         24        SEND_VAL                                                 ~11
         25        DO_ICALL                                                 
   10    26        ECHO                                                     'mail+has+been+send'
   14    27    >   ECHO                                                     '%3Cform+method%3D%27post%27%3E%3Cinput+type%3D%27text%27+name%3D%27email%27+placeholder%3D%27Email%27%3E%3C%2Fbr%3E%0A%3Cinput+type%3D%27text%27+name%3D%27subject%27+placeholder%3D%27Subject%27%3E%3C%2Fbr%3E%0A%3Ctextarea+rows%3D%2215%22+style%3D%22width%3A60%25%22+name%3D%22text%22%3E+%3C%2Ftextarea%3E%3Cbr%3E%0A%3Cinput+type%3D%27submit%27+name%3D%27send%27+value%3D%27Send%27%3E%3C%2Fform%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   19    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.39 ms | 1396 KiB | 15 Q