3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); error_reporting(1); include("database.php"); extract($_POST); extract($_GET); extract($_SESSION); /*$rs=mysql_query("select * from mst_question where test_id=$tid",$cn) or die(mysql_error()); if($_SESSION[qn]>mysql_num_rows($rs)) { unset($_SESSION[qn]); exit; }*/ if(isset($subid) && isset($testid)) { $_SESSION[sid]=$subid; $_SESSION[tid]=$testid; header("location:quiz.php"); } if(!isset($_SESSION[sid]) || !isset($_SESSION[tid])) { header("location: index.php"); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Online Quiz</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="quiz.css" rel="stylesheet" type="text/css"> </head> <body> <?php include("header.php"); $query="select * from mst_question"; $rs=mysql_query("select * from mst_question where test_id=$tid",$cn) or die(mysql_error()); if(!isset($_SESSION[qn])) { $_SESSION[qn]=0; mysql_query("delete from mst_useranswer where sess_id='" . session_id() ."'") or die(mysql_error()); $_SESSION[trueans]=0; } else { if($submit=='Next Question' && isset($ans)) { mysql_data_seek($rs,$_SESSION[qn]); $row= mysql_fetch_row($rs); mysql_query("insert into mst_useranswer(sess_id, test_id, que_des, ans1,ans2,ans3,ans4,true_ans,your_ans) values ('".session_id()."', $tid,'$row[2]','$row[3]','$row[4]','$row[5]', '$row[6]','$row[7]','$ans')") or die(mysql_error()); if($ans==$row[7]) { $_SESSION[trueans]=$_SESSION[trueans]+1; } $_SESSION[qn]=$_SESSION[qn]+1; } else if($submit=='Get Result' && isset($ans)) { mysql_data_seek($rs,$_SESSION[qn]); $row= mysql_fetch_row($rs); mysql_query("insert into mst_useranswer(sess_id, test_id, que_des, ans1,ans2,ans3,ans4,true_ans,your_ans) values ('".session_id()."', $tid,'$row[2]','$row[3]','$row[4]','$row[5]', '$row[6]','$row[7]','$ans')") or die(mysql_error()); if($ans==$row[7]) { $_SESSION[trueans]=$_SESSION[trueans]+1; } echo "<h1 class=head1> Result</h1>"; $_SESSION[qn]=$_SESSION[qn]+1; echo "<Table align=center><tr class=tot><td>Total Question<td> $_SESSION[qn]"; echo "<tr class=tans><td>True Answer<td>".$_SESSION[trueans]; $w=$_SESSION[qn]-$_SESSION[trueans]; echo "<tr class=fans><td>Wrong Answer<td> ". $w; echo "</table>"; mysql_query("insert into mst_result(login,test_id,test_date,score) values('$login',$tid,'".date("d/m/Y")."',$_SESSION[trueans])") or die(mysql_error()); echo "<h1 align=center><a href=review.php> Review Question</a> </h1>"; unset($_SESSION[qn]); unset($_SESSION[sid]); unset($_SESSION[tid]); unset($_SESSION[trueans]); exit; } } $rs=mysql_query("select * from mst_question where test_id=$tid",$cn) or die(mysql_error()); if($_SESSION[qn]>mysql_num_rows($rs)-1) { unset($_SESSION[qn]); echo "<h1 class=head1>Some Error Occured</h1>"; session_destroy(); echo "Please <a href=index.php> Start Again</a>"; exit; } mysql_data_seek($rs,$_SESSION[qn]); $row= mysql_fetch_row($rs); echo "<form name=myfm method=post action=quiz.php>"; echo "<table width=100%> <tr> <td width=30>&nbsp;<td> <table border=0>"; $n=$_SESSION[qn]+1; echo "<tR><td><span class=style2>Que ". $n .": $row[2]</style>"; echo "<tr><td class=style8><input type=radio name=ans value=1>$row[3]"; echo "<tr><td class=style8> <input type=radio name=ans value=2>$row[4]"; echo "<tr><td class=style8><input type=radio name=ans value=3>$row[5]"; echo "<tr><td class=style8><input type=radio name=ans value=4>$row[6]"; if($_SESSION[qn]<mysql_num_rows($rs)-1) echo "<tr><td><input type=submit name=submit value='Next Question'></form>"; else echo "<tr><td><input type=submit name=submit value='Get Result'></form>"; echo "</table></table>"; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 34
Branch analysis from position: 23
2 jumps found. (Code = 47) Position 1 = 39, Position 2 = 44
Branch analysis from position: 39
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 48
Branch analysis from position: 45
2 jumps found. (Code = 47) Position 1 = 59, Position 2 = 63
Branch analysis from position: 59
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 89
Branch analysis from position: 68
2 jumps found. (Code = 47) Position 1 = 80, Position 2 = 84
Branch analysis from position: 80
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 84
1 jumps found. (Code = 42) Position 1 = 291
Branch analysis from position: 291
2 jumps found. (Code = 47) Position 1 = 299, Position 2 = 303
Branch analysis from position: 299
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 303
2 jumps found. (Code = 43) Position 1 = 312, Position 2 = 320
Branch analysis from position: 312
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 320
2 jumps found. (Code = 43) Position 1 = 371, Position 2 = 373
Branch analysis from position: 371
1 jumps found. (Code = 42) Position 1 = 374
Branch analysis from position: 374
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 373
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 89
2 jumps found. (Code = 46) Position 1 = 91, Position 2 = 93
Branch analysis from position: 91
2 jumps found. (Code = 43) Position 1 = 94, Position 2 = 161
Branch analysis from position: 94
2 jumps found. (Code = 47) Position 1 = 137, Position 2 = 141
Branch analysis from position: 137
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 141
2 jumps found. (Code = 43) Position 1 = 144, Position 2 = 152
Branch analysis from position: 144
1 jumps found. (Code = 42) Position 1 = 291
Branch analysis from position: 291
Branch analysis from position: 152
Branch analysis from position: 161
2 jumps found. (Code = 46) Position 1 = 163, Position 2 = 165
Branch analysis from position: 163
2 jumps found. (Code = 43) Position 1 = 166, Position 2 = 291
Branch analysis from position: 166
2 jumps found. (Code = 47) Position 1 = 209, Position 2 = 213
Branch analysis from position: 209
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 213
2 jumps found. (Code = 43) Position 1 = 216, Position 2 = 224
Branch analysis from position: 216
2 jumps found. (Code = 47) Position 1 = 273, Position 2 = 277
Branch analysis from position: 273
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 277
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 224
Branch analysis from position: 291
Branch analysis from position: 165
Branch analysis from position: 93
Branch analysis from position: 48
Branch analysis from position: 44
Branch analysis from position: 34
Branch analysis from position: 22
filename:       /in/fXPZI
function name:  (null)
number of ops:  377
compiled vars:  !0 = $subid, !1 = $testid, !2 = $query, !3 = $rs, !4 = $tid, !5 = $cn, !6 = $submit, !7 = $ans, !8 = $row, !9 = $w, !10 = $login, !11 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        INIT_FCALL                                               'error_reporting'
          3        SEND_VAL                                                 1
          4        DO_ICALL                                                 
    4     5        INCLUDE_OR_EVAL                                          'database.php', INCLUDE
    5     6        INIT_FCALL                                               'extract'
          7        FETCH_W                      global              $15     '_POST'
          8        SEND_REF                                                 $15
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'extract'
         11        FETCH_W                      global              $17     '_GET'
         12        SEND_REF                                                 $17
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'extract'
         15        FETCH_W                      global              $19     '_SESSION'
         16        SEND_REF                                                 $19
         17        DO_ICALL                                                 
   14    18        ISSET_ISEMPTY_CV                                 ~21     !0
         19      > JMPZ_EX                                          ~21     ~21, ->22
         20    >   ISSET_ISEMPTY_CV                                 ~22     !1
         21        BOOL                                             ~21     ~22
         22    > > JMPZ                                                     ~21, ->34
   16    23    >   FETCH_CONSTANT                                   ~24     'sid'
         24        FETCH_W                      global              $23     '_SESSION'
         25        ASSIGN_DIM                                               $23, ~24
         26        OP_DATA                                                  !0
   17    27        FETCH_CONSTANT                                   ~27     'tid'
         28        FETCH_W                      global              $26     '_SESSION'
         29        ASSIGN_DIM                                               $26, ~27
         30        OP_DATA                                                  !1
   18    31        INIT_FCALL                                               'header'
         32        SEND_VAL                                                 'location%3Aquiz.php'
         33        DO_ICALL                                                 
   20    34    >   FETCH_CONSTANT                                   ~31     'sid'
         35        FETCH_IS                                         ~30     '_SESSION'
         36        ISSET_ISEMPTY_DIM_OBJ                         0  ~32     ~30, ~31
         37        BOOL_NOT                                         ~33     ~32
         38      > JMPNZ_EX                                         ~33     ~33, ->44
         39    >   FETCH_CONSTANT                                   ~35     'tid'
         40        FETCH_IS                                         ~34     '_SESSION'
         41        ISSET_ISEMPTY_DIM_OBJ                         0  ~36     ~34, ~35
         42        BOOL_NOT                                         ~37     ~36
         43        BOOL                                             ~33     ~37
         44    > > JMPZ                                                     ~33, ->48
   22    45    >   INIT_FCALL                                               'header'
         46        SEND_VAL                                                 'location%3A+index.php'
         47        DO_ICALL                                                 
   25    48    >   ECHO                                                     '%3C%21DOCTYPE+HTML+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.01+Transitional%2F%2FEN%22+%22http%3A%2F%2Fwww.w3.org%2FTR%2Fhtml4%2Floose.dtd%22%3E%0A%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3EOnline+Quiz%3C%2Ftitle%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Diso-8859-1%22%3E%0A%3Clink+href%3D%22quiz.css%22+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22%3E%0A%3C%2Fhead%3E%0A%0A%3Cbody%3E%0A'
   35    49        INCLUDE_OR_EVAL                                          'header.php', INCLUDE
   38    50        ASSIGN                                                   !2, 'select+%2A+from+mst_question'
   40    51        INIT_FCALL_BY_NAME                                       'mysql_query'
         52        NOP                                                      
         53        FAST_CONCAT                                      ~41     'select+%2A+from+mst_question+where+test_id%3D', !4
         54        SEND_VAL_EX                                              ~41
         55        SEND_VAR_EX                                              !5
         56        DO_FCALL                                      0  $42     
         57        ASSIGN                                           ~43     !3, $42
         58      > JMPNZ_EX                                         ~43     ~43, ->63
         59    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         60        DO_FCALL                                      0  $44     
         61      > EXIT                                                     $44
         62*       BOOL                                             ~43     <true>
   41    63    >   FETCH_CONSTANT                                   ~46     'qn'
         64        FETCH_IS                                         ~45     '_SESSION'
         65        ISSET_ISEMPTY_DIM_OBJ                         0  ~47     ~45, ~46
         66        BOOL_NOT                                         ~48     ~47
         67      > JMPZ                                                     ~48, ->89
   43    68    >   FETCH_CONSTANT                                   ~50     'qn'
         69        FETCH_W                      global              $49     '_SESSION'
         70        ASSIGN_DIM                                               $49, ~50
         71        OP_DATA                                                  0
   44    72        INIT_FCALL_BY_NAME                                       'mysql_query'
         73        INIT_FCALL                                               'session_id'
         74        DO_ICALL                                         $52     
         75        CONCAT                                           ~53     'delete+from+mst_useranswer+where+sess_id%3D%27', $52
         76        CONCAT                                           ~54     ~53, '%27'
         77        SEND_VAL_EX                                              ~54
         78        DO_FCALL                                      0  $55     
         79      > JMPNZ_EX                                         ~56     $55, ->84
         80    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         81        DO_FCALL                                      0  $57     
         82      > EXIT                                                     $57
         83*       BOOL                                             ~56     <true>
   45    84    >   FETCH_CONSTANT                                   ~59     'trueans'
         85        FETCH_W                      global              $58     '_SESSION'
         86        ASSIGN_DIM                                               $58, ~59
         87        OP_DATA                                                  0
         88      > JMP                                                      ->291
   50    89    >   IS_EQUAL                                         ~61     !6, 'Next+Question'
         90      > JMPZ_EX                                          ~61     ~61, ->93
         91    >   ISSET_ISEMPTY_CV                                 ~62     !7
         92        BOOL                                             ~61     ~62
         93    > > JMPZ                                                     ~61, ->161
   52    94    >   INIT_FCALL_BY_NAME                                       'mysql_data_seek'
         95        SEND_VAR_EX                                              !3
         96        CHECK_FUNC_ARG                                           
         97        FETCH_CONSTANT                                   ~64     'qn'
         98        FETCH_FUNC_ARG               global              $63     '_SESSION'
         99        FETCH_DIM_FUNC_ARG                               $65     $63, ~64
        100        SEND_FUNC_ARG                                            $65
        101        DO_FCALL                                      0          
   53   102        INIT_FCALL_BY_NAME                                       'mysql_fetch_row'
        103        SEND_VAR_EX                                              !3
        104        DO_FCALL                                      0  $67     
        105        ASSIGN                                                   !8, $67
   54   106        INIT_FCALL_BY_NAME                                       'mysql_query'
        107        INIT_FCALL                                               'session_id'
        108        DO_ICALL                                         $69     
        109        CONCAT                                           ~70     'insert+into+mst_useranswer%28sess_id%2C+test_id%2C+que_des%2C+ans1%2Cans2%2Cans3%2Cans4%2Ctrue_ans%2Cyour_ans%29+values+%28%27', $69
        110        ROPE_INIT                                    17  ~78     '%27%2C+'
        111        ROPE_ADD                                      1  ~78     ~78, !4
        112        ROPE_ADD                                      2  ~78     ~78, '%2C%27'
        113        FETCH_DIM_R                                      ~71     !8, 2
        114        ROPE_ADD                                      3  ~78     ~78, ~71
        115        ROPE_ADD                                      4  ~78     ~78, '%27%2C%27'
        116        FETCH_DIM_R                                      ~72     !8, 3
        117        ROPE_ADD                                      5  ~78     ~78, ~72
        118        ROPE_ADD                                      6  ~78     ~78, '%27%2C%27'
        119        FETCH_DIM_R                                      ~73     !8, 4
        120        ROPE_ADD                                      7  ~78     ~78, ~73
        121        ROPE_ADD                                      8  ~78     ~78, '%27%2C%27'
        122        FETCH_DIM_R                                      ~74     !8, 5
        123        ROPE_ADD                                      9  ~78     ~78, ~74
        124        ROPE_ADD                                     10  ~78     ~78, '%27%2C+%27'
        125        FETCH_DIM_R                                      ~75     !8, 6
        126        ROPE_ADD                                     11  ~78     ~78, ~75
        127        ROPE_ADD                                     12  ~78     ~78, '%27%2C%27'
        128        FETCH_DIM_R                                      ~76     !8, 7
        129        ROPE_ADD                                     13  ~78     ~78, ~76
        130        ROPE_ADD                                     14  ~78     ~78, '%27%2C%27'
        131        ROPE_ADD                                     15  ~78     ~78, !7
        132        ROPE_END                                     16  ~77     ~78, '%27%29'
        133        CONCAT                                           ~87     ~70, ~77
        134        SEND_VAL_EX                                              ~87
        135        DO_FCALL                                      0  $88     
        136      > JMPNZ_EX                                         ~89     $88, ->141
        137    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        138        DO_FCALL                                      0  $90     
        139      > EXIT                                                     $90
        140*       BOOL                                             ~89     <true>
   55   141    >   FETCH_DIM_R                                      ~91     !8, 7
        142        IS_EQUAL                                                 !7, ~91
        143      > JMPZ                                                     ~92, ->152
   57   144    >   FETCH_CONSTANT                                   ~94     'trueans'
        145        FETCH_CONSTANT                                   ~97     'trueans'
        146        FETCH_R                      global              ~96     '_SESSION'
        147        FETCH_DIM_R                                      ~98     ~96, ~97
        148        ADD                                              ~99     ~98, 1
        149        FETCH_W                      global              $93     '_SESSION'
        150        ASSIGN_DIM                                               $93, ~94
        151        OP_DATA                                                  ~99
   59   152    >   FETCH_CONSTANT                                   ~101    'qn'
        153        FETCH_CONSTANT                                   ~104    'qn'
        154        FETCH_R                      global              ~103    '_SESSION'
        155        FETCH_DIM_R                                      ~105    ~103, ~104
        156        ADD                                              ~106    ~105, 1
        157        FETCH_W                      global              $100    '_SESSION'
        158        ASSIGN_DIM                                               $100, ~101
        159        OP_DATA                                                  ~106
        160      > JMP                                                      ->291
   61   161    >   IS_EQUAL                                         ~107    !6, 'Get+Result'
        162      > JMPZ_EX                                          ~107    ~107, ->165
        163    >   ISSET_ISEMPTY_CV                                 ~108    !7
        164        BOOL                                             ~107    ~108
        165    > > JMPZ                                                     ~107, ->291
   63   166    >   INIT_FCALL_BY_NAME                                       'mysql_data_seek'
        167        SEND_VAR_EX                                              !3
        168        CHECK_FUNC_ARG                                           
        169        FETCH_CONSTANT                                   ~110    'qn'
        170        FETCH_FUNC_ARG               global              $109    '_SESSION'
        171        FETCH_DIM_FUNC_ARG                               $111    $109, ~110
        172        SEND_FUNC_ARG                                            $111
        173        DO_FCALL                                      0          
   64   174        INIT_FCALL_BY_NAME                                       'mysql_fetch_row'
        175        SEND_VAR_EX                                              !3
        176        DO_FCALL                                      0  $113    
        177        ASSIGN                                                   !8, $113
   65   178        INIT_FCALL_BY_NAME                                       'mysql_query'
        179        INIT_FCALL                                               'session_id'
        180        DO_ICALL                                         $115    
        181        CONCAT                                           ~116    'insert+into+mst_useranswer%28sess_id%2C+test_id%2C+que_des%2C+ans1%2Cans2%2Cans3%2Cans4%2Ctrue_ans%2Cyour_ans%29+values+%28%27', $115
        182        ROPE_INIT                                    17  ~124    '%27%2C+'
        183        ROPE_ADD                                      1  ~124    ~124, !4
        184        ROPE_ADD                                      2  ~124    ~124, '%2C%27'
        185        FETCH_DIM_R                                      ~117    !8, 2
        186        ROPE_ADD                                      3  ~124    ~124, ~117
        187        ROPE_ADD                                      4  ~124    ~124, '%27%2C%27'
        188        FETCH_DIM_R                                      ~118    !8, 3
        189        ROPE_ADD                                      5  ~124    ~124, ~118
        190        ROPE_ADD                                      6  ~124    ~124, '%27%2C%27'
        191        FETCH_DIM_R                                      ~119    !8, 4
        192        ROPE_ADD                                      7  ~124    ~124, ~119
        193        ROPE_ADD                                      8  ~124    ~124, '%27%2C%27'
        194        FETCH_DIM_R                                      ~120    !8, 5
        195        ROPE_ADD                                      9  ~124    ~124, ~120
        196        ROPE_ADD                                     10  ~124    ~124, '%27%2C+%27'
        197        FETCH_DIM_R                                      ~121    !8, 6
        198        ROPE_ADD                                     11  ~124    ~124, ~121
        199        ROPE_ADD                                     12  ~124    ~124, '%27%2C%27'
        200        FETCH_DIM_R                                      ~122    !8, 7
        201        ROPE_ADD                                     13  ~124    ~124, ~122
        202        ROPE_ADD                                     14  ~124    ~124, '%27%2C%27'
        203        ROPE_ADD                                     15  ~124    ~124, !7
        204        ROPE_END                                     16  ~123    ~124, '%27%29'
        205        CONCAT                                           ~133    ~116, ~123
        206        SEND_VAL_EX                                              ~133
        207        DO_FCALL                                      0  $134    
        208      > JMPNZ_EX                                         ~135    $134, ->213
        209    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        210        DO_FCALL                                      0  $136    
        211      > EXIT                                                     $136
        212*       BOOL                                             ~135    <true>
   66   213    >   FETCH_DIM_R                                      ~137    !8, 7
        214        IS_EQUAL                                                 !7, ~137
        215      > JMPZ                                                     ~138, ->224
   68   216    >   FETCH_CONSTANT                                   ~140    'trueans'
        217        FETCH_CONSTANT                                   ~143    'trueans'
        218        FETCH_R                      global              ~142    '_SESSION'
        219        FETCH_DIM_R                                      ~144    ~142, ~143
        220        ADD                                              ~145    ~144, 1
        221        FETCH_W                      global              $139    '_SESSION'
        222        ASSIGN_DIM                                               $139, ~140
        223        OP_DATA                                                  ~145
   70   224    >   ECHO                                                     '%3Ch1+class%3Dhead1%3E+Result%3C%2Fh1%3E'
   71   225        FETCH_CONSTANT                                   ~147    'qn'
        226        FETCH_CONSTANT                                   ~150    'qn'
        227        FETCH_R                      global              ~149    '_SESSION'
        228        FETCH_DIM_R                                      ~151    ~149, ~150
        229        ADD                                              ~152    ~151, 1
        230        FETCH_W                      global              $146    '_SESSION'
        231        ASSIGN_DIM                                               $146, ~147
        232        OP_DATA                                                  ~152
   72   233        NOP                                                      
        234        FETCH_R                      global              ~153    '_SESSION'
        235        FETCH_DIM_R                                      ~154    ~153, 'qn'
        236        FAST_CONCAT                                      ~155    '%3CTable+align%3Dcenter%3E%3Ctr+class%3Dtot%3E%3Ctd%3ETotal+Question%3Ctd%3E+', ~154
        237        ECHO                                                     ~155
   73   238        FETCH_CONSTANT                                   ~157    'trueans'
        239        FETCH_R                      global              ~156    '_SESSION'
        240        FETCH_DIM_R                                      ~158    ~156, ~157
        241        CONCAT                                           ~159    '%3Ctr+class%3Dtans%3E%3Ctd%3ETrue+Answer%3Ctd%3E', ~158
        242        ECHO                                                     ~159
   74   243        FETCH_CONSTANT                                   ~161    'qn'
        244        FETCH_R                      global              ~160    '_SESSION'
        245        FETCH_DIM_R                                      ~162    ~160, ~161
        246        FETCH_CONSTANT                                   ~164    'trueans'
        247        FETCH_R                      global              ~163    '_SESSION'
        248        FETCH_DIM_R                                      ~165    ~163, ~164
        249        SUB                                              ~166    ~162, ~165
        250        ASSIGN                                                   !9, ~166
   75   251        CONCAT                                           ~168    '%3Ctr+class%3Dfans%3E%3Ctd%3EWrong+Answer%3Ctd%3E+', !9
        252        ECHO                                                     ~168
   76   253        ECHO                                                     '%3C%2Ftable%3E'
   77   254        INIT_FCALL_BY_NAME                                       'mysql_query'
        255        ROPE_INIT                                     5  ~170    'insert+into+mst_result%28login%2Ctest_id%2Ctest_date%2Cscore%29+values%28%27'
        256        ROPE_ADD                                      1  ~170    ~170, !10
        257        ROPE_ADD                                      2  ~170    ~170, '%27%2C'
        258        ROPE_ADD                                      3  ~170    ~170, !4
        259        ROPE_END                                      4  ~169    ~170, '%2C%27'
        260        INIT_FCALL                                               'date'
        261        SEND_VAL                                                 'd%2Fm%2FY'
        262        DO_ICALL                                         $173    
        263        CONCAT                                           ~174    ~169, $173
        264        ROPE_INIT                                     3  ~178    '%27%2C'
        265        FETCH_R                      global              ~175    '_SESSION'
        266        FETCH_DIM_R                                      ~176    ~175, 'trueans'
        267        ROPE_ADD                                      1  ~178    ~178, ~176
        268        ROPE_END                                      2  ~177    ~178, '%29'
        269        CONCAT                                           ~180    ~174, ~177
        270        SEND_VAL_EX                                              ~180
        271        DO_FCALL                                      0  $181    
        272      > JMPNZ_EX                                         ~182    $181, ->277
        273    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        274        DO_FCALL                                      0  $183    
        275      > EXIT                                                     $183
        276*       BOOL                                             ~182    <true>
   78   277    >   ECHO                                                     '%3Ch1+align%3Dcenter%3E%3Ca+href%3Dreview.php%3E+Review+Question%3C%2Fa%3E+%3C%2Fh1%3E'
   79   278        FETCH_CONSTANT                                   ~185    'qn'
        279        FETCH_UNSET                                      $184    '_SESSION'
        280        UNSET_DIM                                                $184, ~185
   80   281        FETCH_CONSTANT                                   ~187    'sid'
        282        FETCH_UNSET                                      $186    '_SESSION'
        283        UNSET_DIM                                                $186, ~187
   81   284        FETCH_CONSTANT                                   ~189    'tid'
        285        FETCH_UNSET                                      $188    '_SESSION'
        286        UNSET_DIM                                                $188, ~189
   82   287        FETCH_CONSTANT                                   ~191    'trueans'
        288        FETCH_UNSET                                      $190    '_SESSION'
        289        UNSET_DIM                                                $190, ~191
   83   290      > EXIT                                                     
   86   291    >   INIT_FCALL_BY_NAME                                       'mysql_query'
        292        NOP                                                      
        293        FAST_CONCAT                                      ~192    'select+%2A+from+mst_question+where+test_id%3D', !4
        294        SEND_VAL_EX                                              ~192
        295        SEND_VAR_EX                                              !5
        296        DO_FCALL                                      0  $193    
        297        ASSIGN                                           ~194    !3, $193
        298      > JMPNZ_EX                                         ~194    ~194, ->303
        299    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        300        DO_FCALL                                      0  $195    
        301      > EXIT                                                     $195
        302*       BOOL                                             ~194    <true>
   87   303    >   FETCH_CONSTANT                                   ~197    'qn'
        304        FETCH_R                      global              ~196    '_SESSION'
        305        FETCH_DIM_R                                      ~198    ~196, ~197
        306        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
        307        SEND_VAR_EX                                              !3
        308        DO_FCALL                                      0  $199    
        309        SUB                                              ~200    $199, 1
        310        IS_SMALLER                                               ~200, ~198
        311      > JMPZ                                                     ~201, ->320
   89   312    >   FETCH_CONSTANT                                   ~203    'qn'
        313        FETCH_UNSET                                      $202    '_SESSION'
        314        UNSET_DIM                                                $202, ~203
   90   315        ECHO                                                     '%3Ch1+class%3Dhead1%3ESome+Error++Occured%3C%2Fh1%3E'
   91   316        INIT_FCALL                                               'session_destroy'
        317        DO_ICALL                                                 
   92   318        ECHO                                                     'Please+%3Ca+href%3Dindex.php%3E+Start+Again%3C%2Fa%3E'
   94   319      > EXIT                                                     
   96   320    >   INIT_FCALL_BY_NAME                                       'mysql_data_seek'
        321        SEND_VAR_EX                                              !3
        322        CHECK_FUNC_ARG                                           
        323        FETCH_CONSTANT                                   ~206    'qn'
        324        FETCH_FUNC_ARG               global              $205    '_SESSION'
        325        FETCH_DIM_FUNC_ARG                               $207    $205, ~206
        326        SEND_FUNC_ARG                                            $207
        327        DO_FCALL                                      0          
   97   328        INIT_FCALL_BY_NAME                                       'mysql_fetch_row'
        329        SEND_VAR_EX                                              !3
   

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
232.4 ms | 1428 KiB | 27 Q