3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Conectando, seleccionando la base de datos $link = mysql_connect('mysql3.000webhost.com', 'a7163469_intern', '11Liburu') or die('No se pudo conectar: ' . mysql_error()); echo 'Connected successfully'; mysql_select_db('a7163469_txanda') or die('No se pudo seleccionar la base de datos'); // Realizar una consulta MySQL $query = 'SELECT * FROM Txanda'; $result = mysql_query($query) or die('Consulta fallida: ' . mysql_error()); // Imprimir los resultados en HTML echo "<table>\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; } echo "\t</tr>\n"; } echo "</table>\n"; // Liberar resultados mysql_free_result($result); // Cerrar la conexión mysql_close($link); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 47) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 47) Position 1 = 25, Position 2 = 30
Branch analysis from position: 25
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 = 49, Position 2 = 32
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
2 jumps found. (Code = 77) Position 1 = 34, Position 2 = 40
Branch analysis from position: 34
2 jumps found. (Code = 78) Position 1 = 35, Position 2 = 40
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 32
Branch analysis from position: 49
Branch analysis from position: 32
Branch analysis from position: 40
filename:       /in/pEM7N
function name:  (null)
number of ops:  57
compiled vars:  !0 = $link, !1 = $query, !2 = $result, !3 = $line, !4 = $col_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'mysql_connect'
          1        SEND_VAL_EX                                              'mysql3.000webhost.com'
          2        SEND_VAL_EX                                              'a7163469_intern'
          3        SEND_VAL_EX                                              '11Liburu'
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                           ~6      !0, $5
          6      > JMPNZ_EX                                         ~6      ~6, ->12
    4     7    >   INIT_FCALL_BY_NAME                                       'mysql_error'
          8        DO_FCALL                                      0  $7      
          9        CONCAT                                           ~8      'No+se+pudo+conectar%3A+', $7
         10      > EXIT                                                     ~8
         11*       BOOL                                             ~6      <true>
    5    12    >   ECHO                                                     'Connected+successfully'
    6    13        INIT_FCALL_BY_NAME                                       'mysql_select_db'
         14        SEND_VAL_EX                                              'a7163469_txanda'
         15        DO_FCALL                                      0  $9      
         16      > JMPNZ_EX                                         ~10     $9, ->19
         17    > > EXIT                                                     'No+se+pudo+seleccionar+la+base+de+datos'
         18*       BOOL                                             ~10     <true>
    9    19    >   ASSIGN                                                   !1, 'SELECT+%2A+FROM+Txanda'
   10    20        INIT_FCALL_BY_NAME                                       'mysql_query'
         21        SEND_VAR_EX                                              !1
         22        DO_FCALL                                      0  $12     
         23        ASSIGN                                           ~13     !2, $12
         24      > JMPNZ_EX                                         ~13     ~13, ->30
         25    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         26        DO_FCALL                                      0  $14     
         27        CONCAT                                           ~15     'Consulta+fallida%3A+', $14
         28      > EXIT                                                     ~15
         29*       BOOL                                             ~13     <true>
   13    30    >   ECHO                                                     '%3Ctable%3E%0A'
   14    31      > JMP                                                      ->42
   15    32    >   ECHO                                                     '%09%3Ctr%3E%0A'
   16    33      > FE_RESET_R                                       $16     !3, ->40
         34    > > FE_FETCH_R                                               $16, !4, ->40
   17    35    >   ROPE_INIT                                     3  ~18     '%09%09%3Ctd%3E'
         36        ROPE_ADD                                      1  ~18     ~18, !4
         37        ROPE_END                                      2  ~17     ~18, '%3C%2Ftd%3E%0A'
         38        ECHO                                                     ~17
   16    39      > JMP                                                      ->34
         40    >   FE_FREE                                                  $16
   19    41        ECHO                                                     '%09%3C%2Ftr%3E%0A'
   14    42    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         43        SEND_VAR_EX                                              !2
         44        FETCH_CONSTANT                                   ~20     'MYSQL_ASSOC'
         45        SEND_VAL_EX                                              ~20
         46        DO_FCALL                                      0  $21     
         47        ASSIGN                                           ~22     !3, $21
         48      > JMPNZ                                                    ~22, ->32
   21    49    >   ECHO                                                     '%3C%2Ftable%3E%0A'
   24    50        INIT_FCALL_BY_NAME                                       'mysql_free_result'
         51        SEND_VAR_EX                                              !2
         52        DO_FCALL                                      0          
   27    53        INIT_FCALL_BY_NAME                                       'mysql_close'
         54        SEND_VAR_EX                                              !0
         55        DO_FCALL                                      0          
   28    56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.05 ms | 1399 KiB | 13 Q