3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once('includes/DBConnect.php'); $sql="select an from hosxpdata "; mysql_query("set character_set_results=tis620"); mysql_query("set character_set_client=tis620"); mysql_query("set character_set_connection=tis620"); $sql=mysql_db_query($dbname,$sql); $res=mysql_num_rows($sql); print "เปรียบเทียบข้อมูล"; print "<table>"; print "<tr>"; print "<td align=center>ราย</td>"; print "<td align=center>".$res."</td>"; print "</tr>"; /*while ($array=mysql_fetch_array($sql)) { print"<tr>"; print"<td align = center>".$res."</td>"; print"</tr>"; } print "</table>";*/ /*<?php $sql = mysql_query("SELECT an FROM hosxpdata"); $records = mysql_num_rows($sql);*/ mysql_close(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oM8df
function name:  (null)
number of ops:  31
compiled vars:  !0 = $sql, !1 = $dbname, !2 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'includes%2FDBConnect.php', REQUIRE_ONCE
    4     1        ASSIGN                                                   !0, 'select+an+from+hosxpdata+'
    5     2        INIT_FCALL_BY_NAME                                       'mysql_query'
          3        SEND_VAL_EX                                              'set+character_set_results%3Dtis620'
          4        DO_FCALL                                      0          
    6     5        INIT_FCALL_BY_NAME                                       'mysql_query'
          6        SEND_VAL_EX                                              'set+character_set_client%3Dtis620'
          7        DO_FCALL                                      0          
    7     8        INIT_FCALL_BY_NAME                                       'mysql_query'
          9        SEND_VAL_EX                                              'set+character_set_connection%3Dtis620'
         10        DO_FCALL                                      0          
    8    11        INIT_FCALL_BY_NAME                                       'mysql_db_query'
         12        SEND_VAR_EX                                              !1
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0  $8      
         15        ASSIGN                                                   !0, $8
    9    16        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0  $10     
         19        ASSIGN                                                   !2, $10
   10    20        ECHO                                                     '%E0%B9%80%E0%B8%9B%E0%B8%A3%E0%B8%B5%E0%B8%A2%E0%B8%9A%E0%B9%80%E0%B8%97%E0%B8%B5%E0%B8%A2%E0%B8%9A%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5'
   11    21        ECHO                                                     '%3Ctable%3E'
   12    22        ECHO                                                     '%3Ctr%3E'
   13    23        ECHO                                                     '%3Ctd+align%3Dcenter%3E%E0%B8%A3%E0%B8%B2%E0%B8%A2%3C%2Ftd%3E'
   14    24        CONCAT                                           ~12     '%3Ctd+align%3Dcenter%3E', !2
         25        CONCAT                                           ~13     ~12, '%3C%2Ftd%3E'
         26        ECHO                                                     ~13
   15    27        ECHO                                                     '%3C%2Ftr%3E'
   32    28        INIT_FCALL_BY_NAME                                       'mysql_close'
         29        DO_FCALL                                      0          
   33    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.7 ms | 1395 KiB | 13 Q