3v4l.org

run code in 300+ PHP versions simultaneously
<?php include_once("connection.php"); $result = mysql_query('select * from table'); if (!$result) { die('Query failed: ' . mysql_error()); } /* get column metadata */ $i = 0; while ($i < mysql_num_fields($result)) { echo "Information for column $i:<br />\n"; $meta = mysql_fetch_field($result, $i); if (!$meta) { echo "No information available<br />\n"; } echo "<pre> blob: $meta->blob max_length: $meta->max_length multiple_key: $meta->multiple_key name: $meta->name not_null: $meta->not_null numeric: $meta->numeric primary_key: $meta->primary_key table: $meta->table type: $meta->type unique_key: $meta->unique_key unsigned: $meta->unsigned zerofill: $meta->zerofill </pre>"; $i++; } mysql_free_result($result); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 64
Branch analysis from position: 64
2 jumps found. (Code = 44) Position 1 = 69, Position 2 = 13
Branch analysis from position: 69
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 69, Position 2 = 13
Branch analysis from position: 69
Branch analysis from position: 13
Branch analysis from position: 25
filename:       /in/VEnqS
function name:  (null)
number of ops:  73
compiled vars:  !0 = $result, !1 = $i, !2 = $meta
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'connection.php', INCLUDE_ONCE
    3     1        INIT_FCALL_BY_NAME                                       'mysql_query'
          2        SEND_VAL_EX                                              'select+%2A+from+table'
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !0, $4
    4     5        BOOL_NOT                                         ~6      !0
          6      > JMPZ                                                     ~6, ->11
    5     7    >   INIT_FCALL_BY_NAME                                       'mysql_error'
          8        DO_FCALL                                      0  $7      
          9        CONCAT                                           ~8      'Query+failed%3A+', $7
         10      > EXIT                                                     ~8
    8    11    >   ASSIGN                                                   !1, 0
    9    12      > JMP                                                      ->64
   10    13    >   ROPE_INIT                                     3  ~11     'Information+for+column+'
         14        ROPE_ADD                                      1  ~11     ~11, !1
         15        ROPE_END                                      2  ~10     ~11, '%3A%3Cbr+%2F%3E%0A'
         16        ECHO                                                     ~10
   11    17        INIT_FCALL_BY_NAME                                       'mysql_fetch_field'
         18        SEND_VAR_EX                                              !0
         19        SEND_VAR_EX                                              !1
         20        DO_FCALL                                      0  $13     
         21        ASSIGN                                                   !2, $13
   12    22        BOOL_NOT                                         ~15     !2
         23      > JMPZ                                                     ~15, ->25
   13    24    >   ECHO                                                     'No+information+available%3Cbr+%2F%3E%0A'
   15    25    >   ROPE_INIT                                    25  ~29     '%3Cpre%3E%0Ablob%3A+++++++++'
   16    26        FETCH_OBJ_R                                      ~16     !2, 'blob'
         27        ROPE_ADD                                      1  ~29     ~29, ~16
         28        ROPE_ADD                                      2  ~29     ~29, '%0Amax_length%3A+++'
   17    29        FETCH_OBJ_R                                      ~17     !2, 'max_length'
         30        ROPE_ADD                                      3  ~29     ~29, ~17
         31        ROPE_ADD                                      4  ~29     ~29, '%0Amultiple_key%3A+'
   18    32        FETCH_OBJ_R                                      ~18     !2, 'multiple_key'
         33        ROPE_ADD                                      5  ~29     ~29, ~18
         34        ROPE_ADD                                      6  ~29     ~29, '%0Aname%3A+++++++++'
   19    35        FETCH_OBJ_R                                      ~19     !2, 'name'
         36        ROPE_ADD                                      7  ~29     ~29, ~19
         37        ROPE_ADD                                      8  ~29     ~29, '%0Anot_null%3A+++++'
   20    38        FETCH_OBJ_R                                      ~20     !2, 'not_null'
         39        ROPE_ADD                                      9  ~29     ~29, ~20
         40        ROPE_ADD                                     10  ~29     ~29, '%0Anumeric%3A++++++'
   21    41        FETCH_OBJ_R                                      ~21     !2, 'numeric'
         42        ROPE_ADD                                     11  ~29     ~29, ~21
         43        ROPE_ADD                                     12  ~29     ~29, '%0Aprimary_key%3A++'
   22    44        FETCH_OBJ_R                                      ~22     !2, 'primary_key'
         45        ROPE_ADD                                     13  ~29     ~29, ~22
         46        ROPE_ADD                                     14  ~29     ~29, '%0Atable%3A++++++++'
   23    47        FETCH_OBJ_R                                      ~23     !2, 'table'
         48        ROPE_ADD                                     15  ~29     ~29, ~23
         49        ROPE_ADD                                     16  ~29     ~29, '%0Atype%3A+++++++++'
   24    50        FETCH_OBJ_R                                      ~24     !2, 'type'
         51        ROPE_ADD                                     17  ~29     ~29, ~24
         52        ROPE_ADD                                     18  ~29     ~29, '%0Aunique_key%3A+++'
   25    53        FETCH_OBJ_R                                      ~25     !2, 'unique_key'
         54        ROPE_ADD                                     19  ~29     ~29, ~25
         55        ROPE_ADD                                     20  ~29     ~29, '%0Aunsigned%3A+++++'
   26    56        FETCH_OBJ_R                                      ~26     !2, 'unsigned'
         57        ROPE_ADD                                     21  ~29     ~29, ~26
         58        ROPE_ADD                                     22  ~29     ~29, '%0Azerofill%3A+++++'
   27    59        FETCH_OBJ_R                                      ~27     !2, 'zerofill'
         60        ROPE_ADD                                     23  ~29     ~29, ~27
         61        ROPE_END                                     24  ~28     ~29, '%0A%3C%2Fpre%3E'
         62        ECHO                                                     ~28
   29    63        PRE_INC                                                  !1
    9    64    >   INIT_FCALL_BY_NAME                                       'mysql_num_fields'
         65        SEND_VAR_EX                                              !0
         66        DO_FCALL                                      0  $43     
         67        IS_SMALLER                                               !1, $43
         68      > JMPNZ                                                    ~44, ->13
   31    69    >   INIT_FCALL_BY_NAME                                       'mysql_free_result'
         70        SEND_VAR_EX                                              !0
         71        DO_FCALL                                      0          
   32    72      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.59 ms | 1399 KiB | 13 Q