3v4l.org

run code in 300+ PHP versions simultaneously
<?php //if "email" variable is filled out, send email if (isset($_REQUEST['email'])) { //Email information $admin_email = "someone@example.com"; $email = $_REQUEST['email']; $subject = $_REQUEST['subject']; $comment = $_REQUEST['comment']; //send email mail($admin_email, "$subject", $comment, "From:" . $email); //Email response echo "Thank you for contacting us!"; } //if "email" variable is not filled out, display the form else { ?> <form method="post"> Email: <input name="email" type="text" /><br /> Subject: <input name="subject" type="text" /><br /> Message:<br /> <textarea name="comment" rows="15" cols="40"></textarea><br /> <input type="submit" value="Submit" /> </form> <?php } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dYI21
function name:  (null)
number of ops:  25
compiled vars:  !0 = $admin_email, !1 = $email, !2 = $subject, !3 = $comment
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_IS                                         ~4      '_REQUEST'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~4, 'email'
          2      > JMPZ                                                     ~5, ->23
    6     3    >   ASSIGN                                                   !0, 'someone%40example.com'
    7     4        FETCH_R                      global              ~7      '_REQUEST'
          5        FETCH_DIM_R                                      ~8      ~7, 'email'
          6        ASSIGN                                                   !1, ~8
    8     7        FETCH_R                      global              ~10     '_REQUEST'
          8        FETCH_DIM_R                                      ~11     ~10, 'subject'
          9        ASSIGN                                                   !2, ~11
    9    10        FETCH_R                      global              ~13     '_REQUEST'
         11        FETCH_DIM_R                                      ~14     ~13, 'comment'
         12        ASSIGN                                                   !3, ~14
   12    13        INIT_FCALL                                               'mail'
         14        SEND_VAR                                                 !0
         15        CAST                                          6  ~16     !2
         16        SEND_VAL                                                 ~16
         17        SEND_VAR                                                 !3
         18        CONCAT                                           ~17     'From%3A', !1
         19        SEND_VAL                                                 ~17
         20        DO_ICALL                                                 
   15    21        ECHO                                                     'Thank+you+for+contacting+us%21'
         22      > JMP                                                      ->24
   21    23    >   ECHO                                                     '%0A+%3Cform+method%3D%22post%22%3E%0A++Email%3A+%3Cinput+name%3D%22email%22+type%3D%22text%22+%2F%3E%3Cbr+%2F%3E%0A++Subject%3A+%3Cinput+name%3D%22subject%22+type%3D%22text%22+%2F%3E%3Cbr+%2F%3E%0A++Message%3A%3Cbr+%2F%3E%0A++%3Ctextarea+name%3D%22comment%22+rows%3D%2215%22+cols%3D%2240%22%3E%3C%2Ftextarea%3E%3Cbr+%2F%3E%0A++%3Cinput+type%3D%22submit%22+value%3D%22Submit%22+%2F%3E%0A++%3C%2Fform%3E%0A++%0A'
   32    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.39 ms | 1396 KiB | 15 Q