3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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(); ?>
Output for 5.1.0 - 7.1.0
Warning: require_once(includes/DBConnect.php): failed to open stream: No such file or directory in /in/oM8df on line 2 Fatal error: require_once(): Failed opening required 'includes/DBConnect.php' (include_path='.:') in /in/oM8df on line 2
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: main(includes/DBConnect.php): failed to open stream: No such file or directory in /in/oM8df on line 2 Fatal error: main(): Failed opening required 'includes/DBConnect.php' (include_path='.:') in /in/oM8df on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(includes/DBConnect.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/oM8df on line 2 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'includes/DBConnect.php' (include_path='.:') in /in/oM8df on line 2