3v4l.org

run code in 300+ PHP versions simultaneously
<div class="artical"> <?php $username = "root"; $password = ""; $database = "techinsight"; $server = "127.0.0.1"; $db_handle = mysql_connect($server, $username, $password); $db_found = mysql_select_db($database, $db_handle); if ($db_found) { $SQL= "SELECT * from questions"; $result= mysql_query($SQL); while($db_field=mysql_fetch_assoc($result)) { $x=$db_field['Qid']; while($x==1 && $x==NULL) { $SQL= "SELECT * from questions"; $result= mysql_query($SQL); $db_field=mysql_fetch_assoc($result); $x=$db_field['Qid']; } } if($x==$x) { for($x; $x>0; $x--) { $SQL= "SELECT * from questions WHERE Qid=$x"; $result= mysql_query($SQL); $db_field=mysql_fetch_assoc($result); $str_que= $db_field['question']; echo "<div class='dabba'> <div class='block_a'> <?php include('a.php'); ?> //here it is. </div> <br> <div class='block_b'> it is 2nd section. <br> <div><br> <div class='block_c'> last one.<br> </div> </div> <br><br>"; } } } ?> </div>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 67
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 23
Branch analysis from position: 47
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 67
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 65
Branch analysis from position: 65
2 jumps found. (Code = 44) Position 1 = 67, Position 2 = 50
Branch analysis from position: 67
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 67, Position 2 = 50
Branch analysis from position: 67
Branch analysis from position: 50
Branch analysis from position: 67
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 46) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 26
Branch analysis from position: 42
Branch analysis from position: 26
2 jumps found. (Code = 46) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
Branch analysis from position: 41
Branch analysis from position: 41
Branch analysis from position: 67
filename:       /in/c9I55
function name:  (null)
number of ops:  69
compiled vars:  !0 = $username, !1 = $password, !2 = $database, !3 = $server, !4 = $db_handle, !5 = $db_found, !6 = $SQL, !7 = $result, !8 = $x, !9 = $db_field, !10 = $str_que
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cdiv+class%3D%22artical%22%3E%0A++++++++++++++'
    3     1        ASSIGN                                                   !0, 'root'
    4     2        ASSIGN                                                   !1, ''
    5     3        ASSIGN                                                   !2, 'techinsight'
    6     4        ASSIGN                                                   !3, '127.0.0.1'
    8     5        INIT_FCALL_BY_NAME                                       'mysql_connect'
          6        SEND_VAR_EX                                              !3
          7        SEND_VAR_EX                                              !0
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $15     
         10        ASSIGN                                                   !4, $15
    9    11        INIT_FCALL_BY_NAME                                       'mysql_select_db'
         12        SEND_VAR_EX                                              !2
         13        SEND_VAR_EX                                              !4
         14        DO_FCALL                                      0  $17     
         15        ASSIGN                                                   !5, $17
   13    16      > JMPZ                                                     !5, ->67
   14    17    >   ASSIGN                                                   !6, 'SELECT+%2A+from+questions'
   15    18        INIT_FCALL_BY_NAME                                       'mysql_query'
         19        SEND_VAR_EX                                              !6
         20        DO_FCALL                                      0  $20     
         21        ASSIGN                                                   !7, $20
   17    22      > JMP                                                      ->42
   19    23    >   FETCH_DIM_R                                      ~22     !9, 'Qid'
         24        ASSIGN                                                   !8, ~22
   20    25      > JMP                                                      ->37
   22    26    >   ASSIGN                                                   !6, 'SELECT+%2A+from+questions'
   23    27        INIT_FCALL_BY_NAME                                       'mysql_query'
         28        SEND_VAR_EX                                              !6
         29        DO_FCALL                                      0  $25     
         30        ASSIGN                                                   !7, $25
   24    31        INIT_FCALL_BY_NAME                                       'mysql_fetch_assoc'
         32        SEND_VAR_EX                                              !7
         33        DO_FCALL                                      0  $27     
         34        ASSIGN                                                   !9, $27
   25    35        FETCH_DIM_R                                      ~29     !9, 'Qid'
         36        ASSIGN                                                   !8, ~29
   20    37    >   IS_EQUAL                                         ~31     !8, 1
         38      > JMPZ_EX                                          ~31     ~31, ->41
         39    >   IS_EQUAL                                         ~32     !8, null
         40        BOOL                                             ~31     ~32
         41    > > JMPNZ                                                    ~31, ->26
   17    42    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_assoc'
         43        SEND_VAR_EX                                              !7
         44        DO_FCALL                                      0  $33     
         45        ASSIGN                                           ~34     !9, $33
         46      > JMPNZ                                                    ~34, ->23
   28    47    >   IS_EQUAL                                                 !8, !8
         48      > JMPZ                                                     ~35, ->67
   30    49    > > JMP                                                      ->65
   32    50    >   NOP                                                      
         51        FAST_CONCAT                                      ~36     'SELECT+%2A+from+questions+WHERE+Qid%3D', !8
         52        ASSIGN                                                   !6, ~36
   33    53        INIT_FCALL_BY_NAME                                       'mysql_query'
         54        SEND_VAR_EX                                              !6
         55        DO_FCALL                                      0  $38     
         56        ASSIGN                                                   !7, $38
   34    57        INIT_FCALL_BY_NAME                                       'mysql_fetch_assoc'
         58        SEND_VAR_EX                                              !7
         59        DO_FCALL                                      0  $40     
         60        ASSIGN                                                   !9, $40
   35    61        FETCH_DIM_R                                      ~42     !9, 'question'
         62        ASSIGN                                                   !10, ~42
   37    63        ECHO                                                     '%3Cdiv+class%3D%27dabba%27%3E%0A++++++++++++++++++++%3Cdiv+class%3D%27block_a%27%3E+%3C%3Fphp+include%28%27a.php%27%29%3B+%3F%3E++%2F%2Fhere+it+is.%0A++++++++++++++++++++%3C%2Fdiv%3E+%3Cbr%3E%0A++++++++++++++++%3Cdiv+class%3D%27block_b%27%3E%0A+++++++++++++++++it+is+2nd+section.+%3Cbr%3E%0A+++++++++++++++++%3Cdiv%3E%3Cbr%3E%0A++++++++++++++++%3Cdiv+class%3D%27block_c%27%3E%0A++++++++++++++++last+one.%3Cbr%3E++%3C%2Fdiv%3E%0A%0A++++++++++++++++%3C%2Fdiv%3E++%3Cbr%3E%3Cbr%3E'
   30    64        PRE_DEC                                                  !8
         65    >   IS_SMALLER                                               0, !8
         66      > JMPNZ                                                    ~45, ->50
   50    67    >   ECHO                                                     '+%0A%3C%2Fdiv%3E'
   51    68      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.58 ms | 1399 KiB | 13 Q