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(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: require_once(): open_basedir restriction in effect. File(includes/DBConnect.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/oM8df on line 2 Warning: require_once(includes/DBConnect.php): Failed to open stream: Operation not permitted in /in/oM8df on line 2 Fatal error: Uncaught Error: Failed opening required 'includes/DBConnect.php' (include_path='.:') in /in/oM8df:2 Stack trace: #0 {main} thrown in /in/oM8df on line 2
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.03 ms | 402 KiB | 8 Q