3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <title>E-permanence</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control " content="no-cache"> <style> label { display:block; margin: 20px 0 5px 0; } </style> </head> <body> <h1>Inscription</h1> <form name="form" method="post" action="$valeurs ternaires.php"> <label for="nom">Nom*</label> <input name="nom" type="text" id="nom" maxlength="20"> <label for="prenom">Prenom*</label> <input name="prenom" type="text" id="prenom" maxlength="20"> <label for="mail">Mail*</label> <input name="mail" type="email" id="mail" maxlength="20"> <label for="sexe">Votre sexe</label> <input name="sexe" type="text" id="sexe"> <label for="profession">Votre profession</label> <input name="profession" type="text" id="profession"> <p><input type="submit" value="go"></p> </form> </body> </html> <?php $nom = isset($_POST['nom']) ? $_POST['nom'] : ""; $prenom = isset($_POST['prenom']) ? $_POST['prenom'] : ""; $mail = isset($_POST['mail']) ? $_POST['mail'] : ""; $sexe = isset($_POST['sexe']) ? $_POST['sexe'] : ""; $profession = isset($_POST['profession']) ? $_POST['profession'] : ""; // <!-- Cas 1 --> // if ($user == "" or $prenom == "" or $mail == "") { if(empty($nom) || empty($prenom) || empty($mail)) { ?> <html> <head> <title>Avertissement</title> </head> <body> <?php // header("Location:e-perm_homepprofession.php?inscription=no&prob=1"); ?> <h1>Erreur</h1> <p style="font-weight:bold; color:#990000;">Veuillez remplir tous les champs requis</p> <p><a href="e-perm_register.php">Retour</a></p> </body> </html> <?php } else { // die(var_dump($sexe)); var_dump($nom); var_dump($prenom); var_dump($mail); var_dump($sexe); var_dump($profession); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 26
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 35
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 44
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 47) Position 1 = 48, Position 2 = 50
Branch analysis from position: 48
2 jumps found. (Code = 47) Position 1 = 51, Position 2 = 53
Branch analysis from position: 51
2 jumps found. (Code = 43) Position 1 = 54, Position 2 = 57
Branch analysis from position: 54
1 jumps found. (Code = 42) Position 1 = 72
Branch analysis from position: 72
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 53
Branch analysis from position: 50
Branch analysis from position: 44
2 jumps found. (Code = 47) Position 1 = 48, Position 2 = 50
Branch analysis from position: 48
Branch analysis from position: 50
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 44
Branch analysis from position: 40
Branch analysis from position: 44
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 35
Branch analysis from position: 31
Branch analysis from position: 35
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 26
Branch analysis from position: 22
Branch analysis from position: 26
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
Branch analysis from position: 17
filename:       /in/01e3q
function name:  (null)
number of ops:  73
compiled vars:  !0 = $nom, !1 = $prenom, !2 = $mail, !3 = $sexe, !4 = $profession
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Chead%3E%0A++++%3Ctitle%3EE-permanence%3C%2Ftitle%3E%0A++++%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Dutf-8%22%3E%0A++++%3Cmeta+http-equiv%3D%22Pragma%22+content%3D%22no-cache%22%3E%0A++++%3Cmeta+http-equiv%3D%22Cache-Control+%22+content%3D%22no-cache%22%3E%0A%0A%09%3Cstyle%3E%0A%09label+%7B%0A%09%09display%3Ablock%3B%0A%09%09margin%3A+20px+0+5px+0%3B%0A%09%7D%0A%09%3C%2Fstyle%3E%0A%3C%2Fhead%3E%0A%0A%3Cbody%3E%0A%0A++++%3Ch1%3EInscription%3C%2Fh1%3E%0A%0A++++%3Cform+name%3D%22form%22+method%3D%22post%22+action%3D%22%24valeurs+ternaires.php%22%3E%0A%0A++++%3Clabel+for%3D%22nom%22%3ENom%2A%3C%2Flabel%3E%0A++++%3Cinput+name%3D%22nom%22+type%3D%22text%22+id%3D%22nom%22+maxlength%3D%2220%22%3E%0A%0A++++%3Clabel+for%3D%22prenom%22%3EPrenom%2A%3C%2Flabel%3E%0A++++%3Cinput+name%3D%22prenom%22+type%3D%22text%22+id%3D%22prenom%22+maxlength%3D%2220%22%3E%0A%0A++++%3Clabel+for%3D%22mail%22%3EMail%2A%3C%2Flabel%3E%0A++++%3Cinput+name%3D%22mail%22+type%3D%22email%22+id%3D%22mail%22+maxlength%3D%2220%22%3E%0A%0A%0A++++%3Clabel+for%3D%22sexe%22%3EVotre+sexe%3C%2Flabel%3E%0A%3Cinput+name%3D%22sexe%22+type%3D%22text%22+id%3D%22sexe%22%3E%0A%09%0A%09%0A++++%3Clabel+for%3D%22profession%22%3EVotre+profession%3C%2Flabel%3E%0A++++%3Cinput+name%3D%22profession%22+type%3D%22text%22+id%3D%22profession%22%3E%0A%09%0A%0A%09%3Cp%3E%3Cinput+type%3D%22submit%22+value%3D%22go%22%3E%3C%2Fp%3E%0A%0A%3C%2Fform%3E%0A%0A%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E%0A%0A%0A%0A'
   54     1        FETCH_IS                                         ~5      '_POST'
          2        ISSET_ISEMPTY_DIM_OBJ                         0          ~5, 'nom'
          3      > JMPZ                                                     ~6, ->8
          4    >   FETCH_R                      global              ~7      '_POST'
          5        FETCH_DIM_R                                      ~8      ~7, 'nom'
          6        QM_ASSIGN                                        ~9      ~8
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~9      ''
          9    >   ASSIGN                                                   !0, ~9
   55    10        FETCH_IS                                         ~11     '_POST'
         11        ISSET_ISEMPTY_DIM_OBJ                         0          ~11, 'prenom'
         12      > JMPZ                                                     ~12, ->17
         13    >   FETCH_R                      global              ~13     '_POST'
         14        FETCH_DIM_R                                      ~14     ~13, 'prenom'
         15        QM_ASSIGN                                        ~15     ~14
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~15     ''
         18    >   ASSIGN                                                   !1, ~15
   56    19        FETCH_IS                                         ~17     '_POST'
         20        ISSET_ISEMPTY_DIM_OBJ                         0          ~17, 'mail'
         21      > JMPZ                                                     ~18, ->26
         22    >   FETCH_R                      global              ~19     '_POST'
         23        FETCH_DIM_R                                      ~20     ~19, 'mail'
         24        QM_ASSIGN                                        ~21     ~20
         25      > JMP                                                      ->27
         26    >   QM_ASSIGN                                        ~21     ''
         27    >   ASSIGN                                                   !2, ~21
   57    28        FETCH_IS                                         ~23     '_POST'
         29        ISSET_ISEMPTY_DIM_OBJ                         0          ~23, 'sexe'
         30      > JMPZ                                                     ~24, ->35
         31    >   FETCH_R                      global              ~25     '_POST'
         32        FETCH_DIM_R                                      ~26     ~25, 'sexe'
         33        QM_ASSIGN                                        ~27     ~26
         34      > JMP                                                      ->36
         35    >   QM_ASSIGN                                        ~27     ''
         36    >   ASSIGN                                                   !3, ~27
   58    37        FETCH_IS                                         ~29     '_POST'
         38        ISSET_ISEMPTY_DIM_OBJ                         0          ~29, 'profession'
         39      > JMPZ                                                     ~30, ->44
         40    >   FETCH_R                      global              ~31     '_POST'
         41        FETCH_DIM_R                                      ~32     ~31, 'profession'
         42        QM_ASSIGN                                        ~33     ~32
         43      > JMP                                                      ->45
         44    >   QM_ASSIGN                                        ~33     ''
         45    >   ASSIGN                                                   !4, ~33
   64    46        ISSET_ISEMPTY_CV                                 ~35     !0
         47      > JMPNZ_EX                                         ~35     ~35, ->50
         48    >   ISSET_ISEMPTY_CV                                 ~36     !1
         49        BOOL                                             ~35     ~36
         50    > > JMPNZ_EX                                         ~35     ~35, ->53
         51    >   ISSET_ISEMPTY_CV                                 ~37     !2
         52        BOOL                                             ~35     ~37
         53    > > JMPZ                                                     ~35, ->57
   65    54    >   ECHO                                                     '++++%3Chtml%3E%0A++++%3Chead%3E%0A++++++++%3Ctitle%3EAvertissement%3C%2Ftitle%3E%0A++++%3C%2Fhead%3E%0A++++%3Cbody%3E%0A++++++++'
   71    55        ECHO                                                     '++++++++%3Ch1%3EErreur%3C%2Fh1%3E%0A++++++++%3Cp+style%3D%22font-weight%3Abold%3B+color%3A%23990000%3B%22%3EVeuillez+remplir+tous+les+champs+requis%3C%2Fp%3E%0A++++++++%3Cp%3E%3Ca+href%3D%22e-perm_register.php%22%3ERetour%3C%2Fa%3E%3C%2Fp%3E%0A++++%3C%2Fbody%3E%0A++++%3C%2Fhtml%3E%0A%0A++++'
         56      > JMP                                                      ->72
   83    57    >   INIT_FCALL                                               'var_dump'
         58        SEND_VAR                                                 !0
         59        DO_ICALL                                                 
   84    60        INIT_FCALL                                               'var_dump'
         61        SEND_VAR                                                 !1
         62        DO_ICALL                                                 
   85    63        INIT_FCALL                                               'var_dump'
         64        SEND_VAR                                                 !2
         65        DO_ICALL                                                 
   86    66        INIT_FCALL                                               'var_dump'
         67        SEND_VAR                                                 !3
         68        DO_ICALL                                                 
   87    69        INIT_FCALL                                               'var_dump'
         70        SEND_VAR                                                 !4
         71        DO_ICALL                                                 
   92    72    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.68 ms | 1404 KiB | 15 Q