3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curso=$_post['lista']; $nome=$_post['nome']; $morada=$_post['morada']; $contacto=$_post['contacto']; $email=$_post['email']; $profissional=$_post['spryradio1']; $email_from = 'geral@cooperativa-agricola.pt'; $email_subject = "Coonfagri-Novo Candidato"; $email_body ="Candidato ao Curso de $curso.\Nome : $nome\n Morada : $morada\n Contacto : $contacto\n Email : $email\n Regime : $profissional "; $to = "oskr.g6@gmail.com"; $headers = "From: $email_from \r\n"; $headers .= "Reply-To: $email \r\n"; mail($to,$email_subject,$email_body,$headers); header('Location: www.cooperativa-agricola.pt');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dn7p6
function name:  (null)
number of ops:  47
compiled vars:  !0 = $curso, !1 = $_post, !2 = $nome, !3 = $morada, !4 = $contacto, !5 = $email, !6 = $profissional, !7 = $email_from, !8 = $email_subject, !9 = $email_body, !10 = $to, !11 = $headers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_R                                      ~12     !1, 'lista'
          1        ASSIGN                                                   !0, ~12
    3     2        FETCH_DIM_R                                      ~14     !1, 'nome'
          3        ASSIGN                                                   !2, ~14
    4     4        FETCH_DIM_R                                      ~16     !1, 'morada'
          5        ASSIGN                                                   !3, ~16
    5     6        FETCH_DIM_R                                      ~18     !1, 'contacto'
          7        ASSIGN                                                   !4, ~18
    6     8        FETCH_DIM_R                                      ~20     !1, 'email'
          9        ASSIGN                                                   !5, ~20
    7    10        FETCH_DIM_R                                      ~22     !1, 'spryradio1'
         11        ASSIGN                                                   !6, ~22
   12    12        ASSIGN                                                   !7, 'geral%40cooperativa-agricola.pt'
   14    13        ASSIGN                                                   !8, 'Coonfagri-Novo+Candidato'
   16    14        ROPE_INIT                                    13  ~27     'Candidato+ao+Curso+de+'
         15        ROPE_ADD                                      1  ~27     ~27, !0
         16        ROPE_ADD                                      2  ~27     ~27, '.%5CNome+%3A+'
         17        ROPE_ADD                                      3  ~27     ~27, !2
         18        ROPE_ADD                                      4  ~27     ~27, '%0A+Morada+%3A+'
         19        ROPE_ADD                                      5  ~27     ~27, !3
         20        ROPE_ADD                                      6  ~27     ~27, '%0A+Contacto+%3A+'
         21        ROPE_ADD                                      7  ~27     ~27, !4
         22        ROPE_ADD                                      8  ~27     ~27, '%0A+Email+%3A+'
         23        ROPE_ADD                                      9  ~27     ~27, !5
         24        ROPE_ADD                                     10  ~27     ~27, '%0A+Regime+%3A+'
         25        ROPE_ADD                                     11  ~27     ~27, !6
         26        ROPE_END                                     12  ~26     ~27, '+'
         27        ASSIGN                                                   !9, ~26
   19    28        ASSIGN                                                   !10, 'oskr.g6%40gmail.com'
   21    29        ROPE_INIT                                     3  ~37     'From%3A+'
         30        ROPE_ADD                                      1  ~37     ~37, !7
         31        ROPE_END                                      2  ~36     ~37, '+%0D%0A'
         32        ASSIGN                                                   !11, ~36
   23    33        ROPE_INIT                                     3  ~41     'Reply-To%3A+'
         34        ROPE_ADD                                      1  ~41     ~41, !5
         35        ROPE_END                                      2  ~40     ~41, '+%0D%0A'
         36        ASSIGN_OP                                     8          !11, ~40
   25    37        INIT_FCALL                                               'mail'
         38        SEND_VAR                                                 !10
         39        SEND_VAR                                                 !8
         40        SEND_VAR                                                 !9
         41        SEND_VAR                                                 !11
         42        DO_ICALL                                                 
   26    43        INIT_FCALL                                               'header'
         44        SEND_VAL                                                 'Location%3A+www.cooperativa-agricola.pt'
         45        DO_ICALL                                                 
         46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.51 ms | 1400 KiB | 17 Q