3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <body bgColor='#FFFFCC'> <? //$bbb = 5; echo "haha = $haha <br>"; echo "bbb = $bbb <br>"; $msgs=$t0."#".$t1."#".$t1x."#".$t2."#".$t3."#".$t4."#".$t5."#".$t6; echo "$msgs<br>"; switch($HTTP_POST["haha"]) { case 0: echo " <b><BR><center>Please enter all information before downloading</center></b> <hr> <FORM action='regis.php?haha=1&bbb=2' method=post> <INPUT TYPE=hidden name=haha value=1> <font face='MS Sans Serif'> <table> <tr><td><font >First Name </font></td><td> <input type='text' size=40v name='t0' value='$t0'> (English) </td></tr> <tr><td><font >Lastname </font></td><td> <input type='text' name='t1' ></td></tr> <tr><td><font>Organization</font></td><td> <input type='text' size=60 name='t1x' ></td></tr> <tr><td><font >Position </font></td><td><input type='text' name='t2' size=40 value='$t2'> </td></tr> <tr><td>Address </td><td><input type='text' name='t3' size=70 value='$t3'></td></tr> <tr><td>Telephone Number</td><td><input type='text' name='t4' size=40 value='$t4'></td></tr> <tr><td><font >Email Address </font></td><td><input type='text' size=40 name='t5' value='$t5'> </td></tr> <tr><td>Recommendations</td><td><input type='text' name='t6' size=60 value='$t6'> (Optional)</td></tr> </table><br>"; echo " <hr>Thank you very much for giving us your information <br><b>Click sumit button below to start downloading</b> <br><br><input type='submit' value=' Submit '> </form>"; break; case 1: if ($t0=='') { echo " Please enter your firstname <br>"; $haha=0; } if ($t1=='') { echo " Please enter your lastname <br>"; $haha=0;} if ($t1x=='') { echo " Please enter your organization <br>"; $haha=0;} if ($t2=='') { echo " Please enter your position <br>"; $haha=0;} if ($t3=='') { echo " Please enter your working address<BR>";$haha=0; } if ($t5=='') { echo " Please enter your telephone number<br>"; $haha=0;} if ($t5=='') { echo " Please enter your email address <br>";$haha=0; } if ($haha==0) { include("regis.php"); } else { $t8=date('d-m-Y, H:i '); $t7='normal'; $msg=$t0."#".$t1."#".$t1x."#".$t2."#".$t3."#".$t4."#".$t5."#".$t6; $msg=$msg."#".$t7."#".$t8; $nl=chr(13).chr(10); $msg = ereg_replace($nl, "<BR>", $msg); $msg=$msg.chr(10); $fcoun="data/registrants.dat"; $fp=fopen($fcoun,"a"); fwrite($fp,$msg); fclose($fp); $usr=$t0; $f1= ord(substr($usr,0,1)); $f2 = ord(substr($usr,strlen($usr)-1,1)); $f3 = $f1*$f2; $passt= $f3 + $f1 + ($f2 * $f2) + ($f3 * 1234); //$sender="ergonomics@siit.tu.ac.th"; //$reciever=$t5; //$msg=" For installing Noise Manager Version 1, your username is $t0 and your password is $passt"; // include("zendmail.php"); //mail($sender, $reciever, $subject, $msg); $to = $t5; $subject="Noise Manager Installation"; $body = " For installing Noise Manager Version 1, \n\n your username is $t0 and your password is $passt \n\n If you have any question, please reply us. Thank you."; $headers = "From: ergonomics@siit.tu.ac.th\r\n"."X-Mailer: php"; echo " Thank you very much for giving us your information<br><BR>"; // For installation, your username is <B>$t0</B> and your password is // <FONT COLOR=red><B>$passt</B></FONT>. <BR>"; if (mail($to, $subject, $body, $headers)) { echo("<p> The username and password are already sent to <B>$t5</B>. You need them for installing Noise Manager </p>"); } else { echo("<p>The username and password CANNOT be sent to <B>$t5</B></p>"); } echo " Please click <A HREF='nm1.exe'>here ( nm1.exe approx. 1MB) </A> to start downloading Noise Manager for Microsoft Excel 97/2000 ."; // echo " <BR>Noise Manager for Excel 97 will be available soon."; } break; } ?> </body></html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 33
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 49
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 53
Branch analysis from position: 51
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 57
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 59, Position 2 = 61
Branch analysis from position: 59
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 65
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 67, Position 2 = 69
Branch analysis from position: 67
2 jumps found. (Code = 43) Position 1 = 71, Position 2 = 73
Branch analysis from position: 71
2 jumps found. (Code = 43) Position 1 = 75, Position 2 = 77
Branch analysis from position: 75
2 jumps found. (Code = 43) Position 1 = 79, Position 2 = 81
Branch analysis from position: 79
1 jumps found. (Code = 42) Position 1 = 184
Branch analysis from position: 184
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 81
2 jumps found. (Code = 43) Position 1 = 174, Position 2 = 179
Branch analysis from position: 174
1 jumps found. (Code = 42) Position 1 = 183
Branch analysis from position: 183
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 179
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 77
Branch analysis from position: 73
Branch analysis from position: 69
Branch analysis from position: 65
Branch analysis from position: 61
Branch analysis from position: 57
Branch analysis from position: 53
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
filename:       /in/AkkXk
function name:  (null)
number of ops:  188
compiled vars:  !0 = $haha, !1 = $bbb, !2 = $msgs, !3 = $t0, !4 = $t1, !5 = $t1x, !6 = $t2, !7 = $t3, !8 = $t4, !9 = $t5, !10 = $t6, !11 = $HTTP_POST, !12 = $t8, !13 = $t7, !14 = $msg, !15 = $nl, !16 = $fcoun, !17 = $fp, !18 = $usr, !19 = $f1, !20 = $f2, !21 = $f3, !22 = $passt, !23 = $to, !24 = $subject, !25 = $body, !26 = $headers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+3.2+Final%2F%2FEN%22%3E%0A%3Chtml%3E%0A%3Cbody+bgColor%3D%27%23FFFFCC%27%3E%0A%0A'
    8     1        ROPE_INIT                                     3  ~28     'haha+%3D+'
          2        ROPE_ADD                                      1  ~28     ~28, !0
          3        ROPE_END                                      2  ~27     ~28, '+%3Cbr%3E'
          4        ECHO                                                     ~27
    9     5        ROPE_INIT                                     3  ~31     'bbb+%3D+'
          6        ROPE_ADD                                      1  ~31     ~31, !1
          7        ROPE_END                                      2  ~30     ~31, '+%3Cbr%3E'
          8        ECHO                                                     ~30
   11     9        CONCAT                                           ~33     !3, '%23'
         10        CONCAT                                           ~34     ~33, !4
         11        CONCAT                                           ~35     ~34, '%23'
         12        CONCAT                                           ~36     ~35, !5
         13        CONCAT                                           ~37     ~36, '%23'
         14        CONCAT                                           ~38     ~37, !6
         15        CONCAT                                           ~39     ~38, '%23'
         16        CONCAT                                           ~40     ~39, !7
         17        CONCAT                                           ~41     ~40, '%23'
         18        CONCAT                                           ~42     ~41, !8
         19        CONCAT                                           ~43     ~42, '%23'
         20        CONCAT                                           ~44     ~43, !9
         21        CONCAT                                           ~45     ~44, '%23'
         22        CONCAT                                           ~46     ~45, !10
         23        ASSIGN                                                   !2, ~46
   13    24        NOP                                                      
         25        FAST_CONCAT                                      ~48     !2, '%3Cbr%3E'
         26        ECHO                                                     ~48
   14    27        FETCH_DIM_R                                      ~49     !11, 'haha'
   17    28        CASE                                                     ~49, 0
         29      > JMPNZ                                                    ~50, ->33
   44    30    >   CASE                                                     ~49, 1
         31      > JMPNZ                                                    ~50, ->49
         32    > > JMP                                                      ->185
   19    33    >   ROPE_INIT                                    13  ~52     '%0A%0A%3Cb%3E%3CBR%3E%3Ccenter%3EPlease+enter+all+information+before+downloading%3C%2Fcenter%3E%3C%2Fb%3E%0A%3Chr%3E%0A%3CFORM+action%3D%27regis.php%3Fhaha%3D1%26bbb%3D2%27+method%3Dpost%3E%0A%09%3CINPUT+TYPE%3Dhidden+name%3Dhaha+value%3D1%3E%0A%09%3Cfont++face%3D%27MS+Sans+Serif%27%3E%0A%09%3Ctable%3E%0A%09%3Ctr%3E%3Ctd%3E%3Cfont+%3EFirst+Name+%3C%2Ffont%3E%3C%2Ftd%3E%3Ctd%3E+%3Cinput+type%3D%27text%27+size%3D40v+name%3D%27t0%27+value%3D%27'
   27    34        ROPE_ADD                                      1  ~52     ~52, !3
         35        ROPE_ADD                                      2  ~52     ~52, '%27%3E+%28English%29+%3C%2Ftd%3E%3C%2Ftr%3E%0A%09%3Ctr%3E%3Ctd%3E%3Cfont+%3ELastname+%3C%2Ffont%3E%3C%2Ftd%3E%3Ctd%3E+%3Cinput+type%3D%27text%27+name%3D%27t1%27+%3E%3C%2Ftd%3E%3C%2Ftr%3E%0A%09%3Ctr%3E%3Ctd%3E%3Cfont%3EOrganization%3C%2Ffont%3E%3C%2Ftd%3E%3Ctd%3E+%3Cinput+type%3D%27text%27+size%3D60+name%3D%27t1x%27+%3E%3C%2Ftd%3E%3C%2Ftr%3E%0A%09%3Ctr%3E%3Ctd%3E%3Cfont+%3EPosition+%3C%2Ffont%3E%3C%2Ftd%3E%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27t2%27+size%3D40+value%3D%27'
   30    36        ROPE_ADD                                      3  ~52     ~52, !6
         37        ROPE_ADD                                      4  ~52     ~52, '%27%3E+%3C%2Ftd%3E%3C%2Ftr%3E%0A%09%3Ctr%3E%3Ctd%3EAddress+%3C%2Ftd%3E%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27t3%27+size%3D70+value%3D%27'
   31    38        ROPE_ADD                                      5  ~52     ~52, !7
         39        ROPE_ADD                                      6  ~52     ~52, '%27%3E%3C%2Ftd%3E%3C%2Ftr%3E%0A%09%3Ctr%3E%3Ctd%3ETelephone+Number%3C%2Ftd%3E%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27t4%27+size%3D40+value%3D%27'
   32    40        ROPE_ADD                                      7  ~52     ~52, !8
         41        ROPE_ADD                                      8  ~52     ~52, '%27%3E%3C%2Ftd%3E%3C%2Ftr%3E%0A%09%3Ctr%3E%3Ctd%3E%3Cfont+%3EEmail+Address+%3C%2Ffont%3E%3C%2Ftd%3E%3Ctd%3E%3Cinput+type%3D%27text%27+size%3D40+name%3D%27t5%27+value%3D%27'
   33    42        ROPE_ADD                                      9  ~52     ~52, !9
         43        ROPE_ADD                                     10  ~52     ~52, '%27%3E%09%3C%2Ftd%3E%3C%2Ftr%3E%0A%09%3Ctr%3E%3Ctd%3ERecommendations%3C%2Ftd%3E%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27t6%27++size%3D60+value%3D%27'
   34    44        ROPE_ADD                                     11  ~52     ~52, !10
         45        ROPE_END                                     12  ~51     ~52, '%27%3E+%28Optional%29%3C%2Ftd%3E%3C%2Ftr%3E%0A%09%3C%2Ftable%3E%3Cbr%3E'
         46        ECHO                                                     ~51
   37    47        ECHO                                                     '%0A%09%3Chr%3EThank+you+very+much+for+giving+us+your+information%0A%09%3Cbr%3E%3Cb%3EClick+sumit+button+below+to+start+downloading%3C%2Fb%3E%0A%09%3Cbr%3E%3Cbr%3E%3Cinput+type%3D%27submit%27+value%3D%27++++++Submit++++++%27%3E+%3C%2Fform%3E'
   41    48      > JMP                                                      ->185
   45    49    >   IS_EQUAL                                                 !3, ''
         50      > JMPZ                                                     ~59, ->53
         51    >   ECHO                                                     '+Please+enter+your+firstname+%3Cbr%3E'
         52        ASSIGN                                                   !0, 0
   46    53    >   IS_EQUAL                                                 !4, ''
         54      > JMPZ                                                     ~61, ->57
         55    >   ECHO                                                     '+Please+enter+your+lastname+%3Cbr%3E'
         56        ASSIGN                                                   !0, 0
   47    57    >   IS_EQUAL                                                 !5, ''
         58      > JMPZ                                                     ~63, ->61
         59    >   ECHO                                                     '+Please+enter+your+organization+%3Cbr%3E'
         60        ASSIGN                                                   !0, 0
   48    61    >   IS_EQUAL                                                 !6, ''
         62      > JMPZ                                                     ~65, ->65
         63    >   ECHO                                                     '+Please+enter+your+position+%3Cbr%3E'
         64        ASSIGN                                                   !0, 0
   49    65    >   IS_EQUAL                                                 !7, ''
         66      > JMPZ                                                     ~67, ->69
         67    >   ECHO                                                     '+Please+enter+your+working+address%3CBR%3E'
         68        ASSIGN                                                   !0, 0
   50    69    >   IS_EQUAL                                                 !9, ''
         70      > JMPZ                                                     ~69, ->73
         71    >   ECHO                                                     '+Please+enter+your+telephone+number%3Cbr%3E'
         72        ASSIGN                                                   !0, 0
   51    73    >   IS_EQUAL                                                 !9, ''
         74      > JMPZ                                                     ~71, ->77
         75    >   ECHO                                                     '+Please+enter+your+email+address+%3Cbr%3E'
         76        ASSIGN                                                   !0, 0
   52    77    >   IS_EQUAL                                                 !0, 0
         78      > JMPZ                                                     ~73, ->81
   53    79    >   INCLUDE_OR_EVAL                                          'regis.php', INCLUDE
         80      > JMP                                                      ->184
   57    81    >   INIT_FCALL                                               'date'
         82        SEND_VAL                                                 'd-m-Y%2C+H%3Ai+'
         83        DO_ICALL                                         $75     
         84        ASSIGN                                                   !12, $75
         85        ASSIGN                                                   !13, 'normal'
   58    86        CONCAT                                           ~78     !3, '%23'
         87        CONCAT                                           ~79     ~78, !4
         88        CONCAT                                           ~80     ~79, '%23'
         89        CONCAT                                           ~81     ~80, !5
         90        CONCAT                                           ~82     ~81, '%23'
         91        CONCAT                                           ~83     ~82, !6
         92        CONCAT                                           ~84     ~83, '%23'
         93        CONCAT                                           ~85     ~84, !7
         94        CONCAT                                           ~86     ~85, '%23'
         95        CONCAT                                           ~87     ~86, !8
         96        CONCAT                                           ~88     ~87, '%23'
         97        CONCAT                                           ~89     ~88, !9
         98        CONCAT                                           ~90     ~89, '%23'
         99        CONCAT                                           ~91     ~90, !10
        100        ASSIGN                                                   !14, ~91
   59   101        CONCAT                                           ~93     !14, '%23'
        102        CONCAT                                           ~94     ~93, !13
        103        CONCAT                                           ~95     ~94, '%23'
        104        CONCAT                                           ~96     ~95, !12
        105        ASSIGN                                                   !14, ~96
   60   106        ASSIGN                                                   !15, '%0D%0A'
   61   107        INIT_FCALL_BY_NAME                                       'ereg_replace'
        108        SEND_VAR_EX                                              !15
        109        SEND_VAL_EX                                              '%3CBR%3E'
        110        SEND_VAR_EX                                              !14
        111        DO_FCALL                                      0  $99     
        112        ASSIGN                                                   !14, $99
   62   113        CONCAT                                           ~101    !14, '%0A'
        114        ASSIGN                                                   !14, ~101
   63   115        ASSIGN                                                   !16, 'data%2Fregistrants.dat'
   64   116        INIT_FCALL                                               'fopen'
        117        SEND_VAR                                                 !16
        118        SEND_VAL                                                 'a'
        119        DO_ICALL                                         $104    
        120        ASSIGN                                                   !17, $104
   65   121        INIT_FCALL                                               'fwrite'
        122        SEND_VAR                                                 !17
        123        SEND_VAR                                                 !14
        124        DO_ICALL                                                 
   66   125        INIT_FCALL                                               'fclose'
        126        SEND_VAR                                                 !17
        127        DO_ICALL                                                 
   68   128        ASSIGN                                                   !18, !3
   69   129        INIT_FCALL                                               'ord'
        130        INIT_FCALL                                               'substr'
        131        SEND_VAR                                                 !18
        132        SEND_VAL                                                 0
        133        SEND_VAL                                                 1
        134        DO_ICALL                                         $109    
        135        SEND_VAR                                                 $109
        136        DO_ICALL                                         $110    
        137        ASSIGN                                                   !19, $110
   70   138        INIT_FCALL                                               'ord'
        139        INIT_FCALL                                               'substr'
        140        SEND_VAR                                                 !18
        141        STRLEN                                           ~112    !18
        142        SUB                                              ~113    ~112, 1
        143        SEND_VAL                                                 ~113
        144        SEND_VAL                                                 1
        145        DO_ICALL                                         $114    
        146        SEND_VAR                                                 $114
        147        DO_ICALL                                         $115    
        148        ASSIGN                                                   !20, $115
   71   149        MUL                                              ~117    !19, !20
        150        ASSIGN                                                   !21, ~117
   72   151        ADD                                              ~119    !21, !19
        152        MUL                                              ~120    !20, !20
        153        ADD                                              ~121    ~119, ~120
        154        MUL                                              ~122    !21, 1234
        155        ADD                                              ~123    ~121, ~122
        156        ASSIGN                                                   !22, ~123
   82   157        ASSIGN                                                   !23, !9
   83   158        ASSIGN                                                   !24, 'Noise+Manager+Installation'
   84   159        ROPE_INIT                                     5  ~128    '+For+installing+Noise+Manager+Version+1%2C+%0A%0A+your+username+is+'
        160        ROPE_ADD                                      1  ~128    ~128, !3
        161        ROPE_ADD                                      2  ~128    ~128, '+and+your+password+is+'
        162        ROPE_ADD                                      3  ~128    ~128, !22
        163        ROPE_END                                      4  ~127    ~128, '+%0A%0A+If+you+have+any+question%2C+please+reply+us.+Thank+you.'
        164        ASSIGN                                                   !25, ~127
   85   165        ASSIGN                                                   !26, 'From%3A+ergonomics%40siit.tu.ac.th%0D%0AX-Mailer%3A+php'
   87   166        ECHO                                                     '+Thank+you+very+much+for+giving+us+your+information%3Cbr%3E%3CBR%3E'
   91   167        INIT_FCALL                                               'mail'
        168        SEND_VAR                                                 !23
        169        SEND_VAR                                                 !24
        170        SEND_VAR                                                 !25
        171        SEND_VAR                                                 !26
        172        DO_ICALL                                         $133    
        173      > JMPZ                                                     $133, ->179
   93   174    >   ROPE_INIT                                     3  ~135    '%3Cp%3E%09The+username+and+password+are+already+sent+to+%3CB%3E'
        175        ROPE_ADD                                      1  ~135    ~135, !9
        176        ROPE_END                                      2  ~134    ~135, '%3C%2FB%3E.+You+need+them+for+installing+Noise+Manager+%3C%2Fp%3E'
        177        ECHO                                                     ~134
        178      > JMP                                                      ->183
   97   179    >   ROPE_INIT                                     3  ~138    '%3Cp%3EThe+username+and+password+CANNOT+be+sent+to+%3CB%3E'
        180        ROPE_ADD                                      1  ~138    ~138, !9
        181        ROPE_END                                      2  ~137    ~138, '%3C%2FB%3E%3C%2Fp%3E'
        182        ECHO                                                     ~137
  101   183    >   ECHO                                                     '%09Please+click+%3CA+HREF%3D%27nm1.exe%27%3Ehere+%28+nm1.exe+approx.+1MB%29+%3C%2FA%3E+to+start+downloading+Noise+Manager+for+Microsoft++Excel+97%2F2000+.'
  106   184    > > JMP                                                      ->185
        185    >   FREE                                                     ~49
  110   186        ECHO                                                     '%0A%3C%2Fbody%3E%3C%2Fhtml%3E'
  111   187      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.68 ms | 1416 KiB | 27 Q