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>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0140.00316.50
8.3.50.0120.01021.88
8.3.40.0150.00618.59
8.3.30.0100.00318.59
8.3.20.0040.00420.17
8.3.10.0050.00323.66
8.3.00.0040.00419.74
8.2.180.0150.00316.38
8.2.170.0140.00722.96
8.2.160.0100.00320.41
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00520.79
8.2.120.0000.00826.35
8.2.110.0030.00622.07
8.2.100.0040.00817.78
8.2.90.0000.00817.50
8.2.80.0080.00017.97
8.2.70.0000.00917.80
8.2.60.0070.00018.09
8.2.50.0040.00418.10
8.2.40.0040.00420.79
8.2.30.0030.00519.23
8.2.20.0000.00717.53
8.2.10.0000.00817.85
8.2.00.0000.00817.91
8.1.280.0140.00025.92
8.1.270.0040.00420.25
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0080.00022.14
8.1.230.0070.00419.22
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0080.00017.11
8.1.190.0080.00017.10
8.1.180.0060.00318.10
8.1.170.0000.00818.62
8.1.160.0040.00418.76
8.1.150.0080.00018.66
8.1.140.0080.00019.44
8.1.130.0000.00717.57
8.1.120.0000.00717.32
8.1.110.0040.00417.27
8.1.100.0030.00417.31
8.1.90.0040.00317.37
8.1.80.0030.00617.21
8.1.70.0070.00017.30
8.1.60.0000.00717.33
8.1.50.0030.00517.35
8.1.40.0000.01017.42
8.1.30.0000.00917.50
8.1.20.0000.00817.52
8.1.10.0050.00317.40
8.1.00.0000.00717.40
8.0.300.0000.00719.63
8.0.290.0040.00416.63
8.0.280.0030.00318.34
8.0.270.0030.00317.10
8.0.260.0000.00617.18
8.0.250.0000.00716.70
8.0.240.0030.00616.84
8.0.230.0030.00316.84
8.0.220.0050.00216.77
8.0.210.0070.00016.79
8.0.200.0030.00316.75
8.0.190.0040.00416.83
8.0.180.0040.00416.73
8.0.170.0050.00316.66
8.0.160.0000.00716.80
8.0.150.0030.00316.83
8.0.140.0000.00716.64
8.0.130.0030.00313.47
8.0.120.0050.00316.63
8.0.110.0040.00416.77
8.0.100.0040.00416.64
8.0.90.0070.00016.54
8.0.80.0120.00316.69
8.0.70.0040.00416.70
8.0.60.0050.00216.71
8.0.50.0040.00416.64
8.0.30.0130.00416.85
8.0.20.0120.00817.40
8.0.10.0070.00016.93
8.0.00.0140.00716.64
7.4.330.0000.00516.82
7.4.320.0000.00716.49
7.4.300.0030.00316.36
7.4.290.0000.00716.38
7.4.280.0070.00016.42
7.4.270.0030.00316.47
7.4.260.0000.00816.38
7.4.250.0000.00716.26
7.4.240.0030.00416.38
7.4.230.0000.00716.30
7.4.220.0060.01316.43
7.4.210.0060.00816.41
7.4.200.0000.00716.45
7.4.160.0120.00316.48
7.4.150.0120.00617.40
7.4.140.0120.00817.86
7.4.130.0150.00516.38
7.4.120.0110.00916.41
7.4.110.0070.01716.41
7.4.100.0170.00316.32
7.4.90.0100.00616.41
7.4.80.0060.01019.39
7.4.70.0060.01316.36
7.4.60.0080.00816.42
7.4.50.0000.01516.30
7.4.40.0030.01216.36
7.4.30.0100.00816.36
7.4.00.0030.00714.96
7.3.330.0050.00313.43
7.3.320.0000.00513.25
7.3.310.0000.00816.27
7.3.300.0000.00816.17
7.3.290.0070.01016.08
7.3.280.0060.01116.15
7.3.270.0210.00317.40
7.3.260.0130.00416.17
7.3.250.0090.01116.35
7.3.240.0080.01116.26
7.3.230.0070.01016.39
7.3.210.0080.00816.45
7.3.200.0040.01116.29
7.3.190.0080.00816.40
7.3.180.0000.02016.21
7.3.170.0150.00916.27
7.3.160.0090.00816.46
7.3.120.0000.01414.91
7.3.110.0090.00614.57
7.3.100.0060.00314.32
7.3.90.0080.00414.50
7.3.80.0040.00714.29
7.3.70.0030.01214.79
7.3.60.0060.00914.75
7.3.50.0100.00714.35
7.3.40.0070.00714.76
7.3.30.0000.01214.86
7.3.20.0000.01416.37
7.3.10.0030.01016.75
7.3.00.0120.00616.56
7.2.330.0030.01616.27
7.2.320.0030.01316.71
7.2.310.0080.00816.47
7.2.300.0140.00316.55
7.2.290.0150.00316.59
7.2.240.0040.00415.07
7.2.230.0070.01115.09
7.2.220.0040.00814.77
7.2.210.0150.00314.69
7.2.200.0040.01114.98
7.2.190.0040.00814.70
7.2.180.0090.00314.93
7.2.170.0030.00914.84
7.2.160.0080.00414.92
7.2.150.0040.01116.63
7.2.140.0040.01216.73
7.2.130.0090.00616.71
7.2.120.0110.00716.88
7.2.110.0000.01616.50
7.2.100.0060.00616.85
7.2.90.0030.00916.85
7.2.80.0120.00416.75
7.2.70.0060.00816.57
7.2.60.0090.00616.97
7.2.50.0070.00316.56
7.2.40.0070.01116.91
7.2.30.0060.00616.77
7.2.20.0090.00916.72
7.2.10.0030.01316.70
7.2.00.0060.00918.16
7.1.330.0100.00315.57
7.1.320.0040.00815.56
7.1.310.0110.00415.52
7.1.300.0070.01115.59
7.1.290.0070.01015.82
7.1.280.0030.01015.36
7.1.270.0000.01415.55
7.1.260.0070.00715.66
7.1.250.0090.00615.79
7.1.200.0090.00315.98
7.1.100.0150.00018.07
7.1.70.0000.00717.32
7.1.60.0110.01119.44
7.1.50.0100.01317.05
7.1.00.0070.07322.25
7.0.200.0030.00616.39
7.0.60.0100.07719.86
7.0.50.0070.06717.86
7.0.40.0070.06720.20
7.0.30.0200.05020.09
7.0.20.0330.05720.13
7.0.10.0030.05720.19
7.0.00.0030.09020.17
5.6.280.0030.03320.89
5.6.210.0000.06020.46
5.6.200.0070.04018.20
5.6.190.0200.07720.61
5.6.180.0270.06720.44
5.6.170.0330.08020.43
5.6.160.0000.09020.41
5.6.150.0070.08018.13
5.6.140.0070.04018.19
5.6.130.0070.06318.04
5.6.120.0130.06721.04
5.6.110.0100.09020.97
5.6.100.0000.08320.96
5.6.90.0030.05321.11
5.6.80.0070.03320.48
5.5.350.0100.03320.40
5.5.340.0070.04717.96
5.5.330.0030.08320.16
5.5.320.0230.03720.29
5.5.310.0130.04320.52
5.5.300.0130.07317.95
5.5.290.0170.06717.99
5.5.280.0170.07320.98
5.5.270.0070.08720.84
5.5.260.0100.04720.79
5.5.250.0070.07720.49
5.5.240.4000.04320.26

preferences:
54.31 ms | 401 KiB | 5 Q