3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from_name = $_POST['name']; $from_email = $_POST['email']; $to = 'spiridavicius@gmail.com'; $subject = 'Message from web by '.$from_name; $message = $_POST['message']; $headers = 'From: '.$from_email.'' . "\r\n" . 'Reply-To: '.$to.'' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); header("location: index.php?contactok"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cNB2p
function name:  (null)
number of ops:  34
compiled vars:  !0 = $from_name, !1 = $from_email, !2 = $to, !3 = $subject, !4 = $message, !5 = $headers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_R                      global              ~6      '_POST'
          1        FETCH_DIM_R                                      ~7      ~6, 'name'
          2        ASSIGN                                                   !0, ~7
    3     3        FETCH_R                      global              ~9      '_POST'
          4        FETCH_DIM_R                                      ~10     ~9, 'email'
          5        ASSIGN                                                   !1, ~10
    4     6        ASSIGN                                                   !2, 'spiridavicius%40gmail.com'
    5     7        CONCAT                                           ~13     'Message+from+web+by+', !0
          8        ASSIGN                                                   !3, ~13
    6     9        FETCH_R                      global              ~15     '_POST'
         10        FETCH_DIM_R                                      ~16     ~15, 'message'
         11        ASSIGN                                                   !4, ~16
    7    12        CONCAT                                           ~18     'From%3A+', !1
         13        CONCAT                                           ~19     ~18, ''
         14        CONCAT                                           ~20     ~19, '%0D%0A'
    8    15        CONCAT                                           ~21     ~20, 'Reply-To%3A+'
         16        CONCAT                                           ~22     ~21, !2
         17        CONCAT                                           ~23     ~22, ''
         18        CONCAT                                           ~24     ~23, '%0D%0A'
    9    19        CONCAT                                           ~25     ~24, 'X-Mailer%3A+PHP%2F'
         20        INIT_FCALL                                               'phpversion'
         21        DO_ICALL                                         $26     
         22        CONCAT                                           ~27     ~25, $26
    7    23        ASSIGN                                                   !5, ~27
   11    24        INIT_FCALL                                               'mail'
         25        SEND_VAR                                                 !2
         26        SEND_VAR                                                 !3
         27        SEND_VAR                                                 !4
         28        SEND_VAR                                                 !5
         29        DO_ICALL                                                 
   12    30        INIT_FCALL                                               'header'
         31        SEND_VAL                                                 'location%3A+index.php%3Fcontactok'
         32        DO_ICALL                                                 
   13    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.78 ms | 1396 KiB | 19 Q