3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exam=$_POST['exam']; $sub=$_POST['sub']; $col=$_POST['col']; $row=$_POST['row']; /*echo $exam; echo "<br>"; echo $sub; echo "<br>"; echo $col; echo "<br>";*/ echo "<p align='center'<b><font size='+2'>". $exam . "</font></b></p>"; echo "<p align='center'<b><font size='+1'>". $sub . "</font></b></p>"; $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("marks", $con); $result = mysql_query("SELECT * FROM vi"); while($row = mysql_fetch_array($result)) { echo $row['1']; echo "<br />"; } mysql_close($con); echo"<div align='center'"; echo "<form name='sheet' action='csheet.php' onsubmit='return check()' method='post'>"; echo"<table width='200' border='1'>"; for($a=1;$a<=$row;$a++) { echo"<tr bgcolor='#0099FF'>"; for($b=1;$b<=$col;$b++) { echo"<td><input type='text' name='' size='8' /></td>"; } echo"</tr>"; } echo"</table>"; echo "<input type='submit' value='Submit'>"; echo "</form></div>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 30
Branch analysis from position: 26
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 39
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 64
Branch analysis from position: 64
2 jumps found. (Code = 44) Position 1 = 66, Position 2 = 55
Branch analysis from position: 66
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
2 jumps found. (Code = 44) Position 1 = 62, Position 2 = 58
Branch analysis from position: 62
2 jumps found. (Code = 44) Position 1 = 66, Position 2 = 55
Branch analysis from position: 66
Branch analysis from position: 55
Branch analysis from position: 58
2 jumps found. (Code = 44) Position 1 = 62, Position 2 = 58
Branch analysis from position: 62
Branch analysis from position: 58
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 39
Branch analysis from position: 47
Branch analysis from position: 39
filename:       /in/cuG63
function name:  (null)
number of ops:  70
compiled vars:  !0 = $exam, !1 = $sub, !2 = $col, !3 = $row, !4 = $con, !5 = $result, !6 = $a, !7 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                      global              ~8      '_POST'
          1        FETCH_DIM_R                                      ~9      ~8, 'exam'
          2        ASSIGN                                                   !0, ~9
    4     3        FETCH_R                      global              ~11     '_POST'
          4        FETCH_DIM_R                                      ~12     ~11, 'sub'
          5        ASSIGN                                                   !1, ~12
    5     6        FETCH_R                      global              ~14     '_POST'
          7        FETCH_DIM_R                                      ~15     ~14, 'col'
          8        ASSIGN                                                   !2, ~15
    6     9        FETCH_R                      global              ~17     '_POST'
         10        FETCH_DIM_R                                      ~18     ~17, 'row'
         11        ASSIGN                                                   !3, ~18
   10    12        CONCAT                                           ~20     '%3Cp+align%3D%27center%27%3Cb%3E%3Cfont+size%3D%27%2B2%27%3E', !0
         13        CONCAT                                           ~21     ~20, '%3C%2Ffont%3E%3C%2Fb%3E%3C%2Fp%3E'
         14        ECHO                                                     ~21
   11    15        CONCAT                                           ~22     '%3Cp+align%3D%27center%27%3Cb%3E%3Cfont+size%3D%27%2B1%27%3E', !1
         16        CONCAT                                           ~23     ~22, '%3C%2Ffont%3E%3C%2Fb%3E%3C%2Fp%3E'
         17        ECHO                                                     ~23
   12    18        INIT_FCALL_BY_NAME                                       'mysql_connect'
         19        SEND_VAL_EX                                              'localhost'
         20        SEND_VAL_EX                                              'root'
         21        SEND_VAL_EX                                              ''
         22        DO_FCALL                                      0  $24     
         23        ASSIGN                                                   !4, $24
   13    24        BOOL_NOT                                         ~26     !4
         25      > JMPZ                                                     ~26, ->30
   15    26    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         27        DO_FCALL                                      0  $27     
         28        CONCAT                                           ~28     'Could+not+connect%3A+', $27
         29      > EXIT                                                     ~28
   17    30    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         31        SEND_VAL_EX                                              'marks'
         32        SEND_VAR_EX                                              !4
         33        DO_FCALL                                      0          
   18    34        INIT_FCALL_BY_NAME                                       'mysql_query'
         35        SEND_VAL_EX                                              'SELECT+%2A+FROM+vi'
         36        DO_FCALL                                      0  $30     
         37        ASSIGN                                                   !5, $30
   19    38      > JMP                                                      ->42
   21    39    >   FETCH_DIM_R                                      ~32     !3, 1
         40        ECHO                                                     ~32
   22    41        ECHO                                                     '%3Cbr+%2F%3E'
   19    42    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         43        SEND_VAR_EX                                              !5
         44        DO_FCALL                                      0  $33     
         45        ASSIGN                                           ~34     !3, $33
         46      > JMPNZ                                                    ~34, ->39
   24    47    >   INIT_FCALL_BY_NAME                                       'mysql_close'
         48        SEND_VAR_EX                                              !4
         49        DO_FCALL                                      0          
   25    50        ECHO                                                     '%3Cdiv+align%3D%27center%27'
   26    51        ECHO                                                     '%3Cform+name%3D%27sheet%27+action%3D%27csheet.php%27+onsubmit%3D%27return+check%28%29%27+method%3D%27post%27%3E'
   27    52        ECHO                                                     '%3Ctable+width%3D%27200%27+border%3D%271%27%3E'
   28    53        ASSIGN                                                   !6, 1
         54      > JMP                                                      ->64
   30    55    >   ECHO                                                     '%3Ctr+bgcolor%3D%27%230099FF%27%3E'
   31    56        ASSIGN                                                   !7, 1
         57      > JMP                                                      ->60
   33    58    >   ECHO                                                     '%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27%27+size%3D%278%27+%2F%3E%3C%2Ftd%3E'
   31    59        PRE_INC                                                  !7
         60    >   IS_SMALLER_OR_EQUAL                                      !7, !2
         61      > JMPNZ                                                    ~39, ->58
   35    62    >   ECHO                                                     '%3C%2Ftr%3E'
   28    63        PRE_INC                                                  !6
         64    >   IS_SMALLER_OR_EQUAL                                      !6, !3
         65      > JMPNZ                                                    ~41, ->55
   37    66    >   ECHO                                                     '%3C%2Ftable%3E'
   38    67        ECHO                                                     '%3Cinput+type%3D%27submit%27+value%3D%27Submit%27%3E'
   39    68        ECHO                                                     '%3C%2Fform%3E%3C%2Fdiv%3E'
   40    69      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.79 ms | 1390 KiB | 13 Q