3v4l.org

run code in 300+ PHP versions simultaneously
<? //데이터 베이스 연결하기 include "db_info.php"; //Thread 값을 계산한다. $query = "SELECT max(thread) FROM $threadboard"; $max_thread_result = mysql_query($query, $conn); $max_thread_fetch = mysql_fetch_row($max_thread_result); $max_thread = ceil($max_thread_fetch[0]/1000)*1000+1000; $query = "INSERT INTO $threadboard (thread, depth, name, pass, email, title, view, wdate, ip, content) VALUES ($max_thread, 0, '$_POST[name]', '$_POST[pass]', '$_POST[email]', '$_POST[title]', 0, UNIX_TIMESTAMP(), '$_SERVER[REMOTE_ADDR]', '$_POST[content]')"; $result=mysql_query($query, $conn); //데이터베이스와의 연결 종료 mysql_close($conn); // 새 글 쓰기인 경우 리스트로.. //echo ("<meta http-equiv='Refresh' content='1; URL=list.php'>"); echo $query ?> <center> <font size=2>정상적으로 저장되었습니다.</font>
Output for git.master, git.master_jit, rfc.property-hooks
<? //데이터 베이스 연결하기 include "db_info.php"; //Thread 값을 계산한다. $query = "SELECT max(thread) FROM $threadboard"; $max_thread_result = mysql_query($query, $conn); $max_thread_fetch = mysql_fetch_row($max_thread_result); $max_thread = ceil($max_thread_fetch[0]/1000)*1000+1000; $query = "INSERT INTO $threadboard (thread, depth, name, pass, email, title, view, wdate, ip, content) VALUES ($max_thread, 0, '$_POST[name]', '$_POST[pass]', '$_POST[email]', '$_POST[title]', 0, UNIX_TIMESTAMP(), '$_SERVER[REMOTE_ADDR]', '$_POST[content]')"; $result=mysql_query($query, $conn); //데이터베이스와의 연결 종료 mysql_close($conn); // 새 글 쓰기인 경우 리스트로.. //echo ("<meta http-equiv='Refresh' content='1; URL=list.php'>"); echo $query ?> <center> <font size=2>정상적으로 저장되었습니다.</font>

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:
47.18 ms | 403 KiB | 8 Q