3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!$_post['email'] || $_post['email'] == "" || strlen($_post['email']) && $_post['email'] > 30){ echo '<P>Is je emailadres echt zo lang?</P>'; } else { //Open connection to de database mysql_connect("localhost", "root", "") or die("Kan geen contact maken met de database"); mysql_select_db("test"); //Insert mail address $as_email = mysql_real_escape_string($_post['email']); $tr_email = trim($as_email); $QUERY = "INSERT INTO mailinglist (ID, Email, Source) VALUES(NULL, '$tr_email', 'www.example.com/newsletter_signup.html') "; $result = mysql_query($QUERY); if (mysql_affected_rows() == 1) { echo '<P>Your information has been recorded.</P>'; } else { error_log(mysql_error()); echo '<P>Somthing went wrong with your signup attempt.</P>'; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 47) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 52
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/buOKI
function name:  (null)
number of ops:  59
compiled vars:  !0 = $_post, !1 = $as_email, !2 = $tr_email, !3 = $QUERY, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_R                                      ~5      !0, 'email'
          1        BOOL_NOT                                         ~6      ~5
          2      > JMPNZ_EX                                         ~6      ~6, ->6
          3    >   FETCH_DIM_R                                      ~7      !0, 'email'
          4        IS_EQUAL                                         ~8      ~7, ''
          5        BOOL                                             ~6      ~8
          6    > > JMPNZ_EX                                         ~6      ~6, ->14
          7    >   FETCH_DIM_R                                      ~9      !0, 'email'
          8        STRLEN                                           ~10     ~9
          9      > JMPZ_EX                                          ~10     ~10, ->13
         10    >   FETCH_DIM_R                                      ~11     !0, 'email'
         11        IS_SMALLER                                       ~12     30, ~11
         12        BOOL                                             ~10     ~12
         13    >   BOOL                                             ~6      ~10
         14    > > JMPZ                                                     ~6, ->17
    3    15    >   ECHO                                                     '%3CP%3EIs+je+emailadres+echt+zo+lang%3F%3C%2FP%3E'
         16      > JMP                                                      ->58
    6    17    >   INIT_FCALL_BY_NAME                                       'mysql_connect'
         18        SEND_VAL_EX                                              'localhost'
         19        SEND_VAL_EX                                              'root'
         20        SEND_VAL_EX                                              ''
         21        DO_FCALL                                      0  $13     
         22      > JMPNZ_EX                                         ~14     $13, ->25
    7    23    > > EXIT                                                     'Kan+geen+contact+maken+met+de+database'
         24*       BOOL                                             ~14     <true>
    8    25    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         26        SEND_VAL_EX                                              'test'
         27        DO_FCALL                                      0          
   11    28        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
         29        CHECK_FUNC_ARG                                           
         30        FETCH_DIM_FUNC_ARG                               $16     !0, 'email'
         31        SEND_FUNC_ARG                                            $16
         32        DO_FCALL                                      0  $17     
         33        ASSIGN                                                   !1, $17
   12    34        INIT_FCALL                                               'trim'
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                         $19     
         37        ASSIGN                                                   !2, $19
   13    38        ROPE_INIT                                     3  ~22     'INSERT+INTO+mailinglist+%28ID%2C+Email%2C+Source%29%0A+++++++++++++++++++VALUES%28NULL%2C+%27'
   14    39        ROPE_ADD                                      1  ~22     ~22, !2
         40        ROPE_END                                      2  ~21     ~22, '%27%2C%0A+++++++++++++++++++%27www.example.com%2Fnewsletter_signup.html%27%29%0A+++++++++++++++++++'
   13    41        ASSIGN                                                   !3, ~21
   17    42        INIT_FCALL_BY_NAME                                       'mysql_query'
         43        SEND_VAR_EX                                              !3
         44        DO_FCALL                                      0  $25     
         45        ASSIGN                                                   !4, $25
   18    46        INIT_FCALL_BY_NAME                                       'mysql_affected_rows'
         47        DO_FCALL                                      0  $27     
         48        IS_EQUAL                                                 $27, 1
         49      > JMPZ                                                     ~28, ->52
   19    50    >   ECHO                                                     '%3CP%3EYour+information+has+been+recorded.%3C%2FP%3E'
         51      > JMP                                                      ->58
   21    52    >   INIT_FCALL                                               'error_log'
         53        INIT_FCALL_BY_NAME                                       'mysql_error'
         54        DO_FCALL                                      0  $29     
         55        SEND_VAR                                                 $29
         56        DO_ICALL                                                 
   22    57        ECHO                                                     '%3CP%3ESomthing+went+wrong+with+your+signup%0Aattempt.%3C%2FP%3E'
   26    58    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.28 ms | 1400 KiB | 17 Q