3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head><title>Glycine max gene</title> </head> <body> <center> <p align="center">&nbsp;</p> <p align="center"><b><span style="font-size:18pt;">Glycine max gene</span></b></p> <hr></p></p> <? date_default_timezone_set('UTC'); $limit = 40; // 한 화면에 보여지는 재학생 행(레코드)수 if(!$now) { $now = 1; // 현재 페이지 번호 초기화 } $connect = mysql_connect("localhost", "root", "rhkddj12"); mysql_select_db("ust", $connect); if($Locus_name == null) { $sql = "select * from gmax_info order by Locus_name"; } else { $sql = "select * from gmax_info where Locus_name like '%$Locus_name%'"; } $result = mysql_query($sql, $connect); $total = mysql_num_rows($result); // 전체 재학생 행(레코드) 수 $total_page = (int)($total/$limit); if($total%$limit) { // 나머지가 있으면 $total_page++; // 전체 페이지 수 1 증가 } $start = ($now-1)*$limit; if($Locus_name == null) { $sql1 = "select * from gmax_info order by Locus_name limit $start, $limit"; } else { $sql1 = "select * from gmax_info where Locus_name like '%$Locus_name%' limit $start, $limit"; } $result1 = mysql_query($sql1, $connect); echo "<table border=1 bordercolor='#0033FF' align=center>"; echo "<tr><th>Locus_name<th>Transcript_name<th>Gene_name<th>Description"; while($row = mysql_fetch_array($result1)) { echo "<tr>"; echo "<td> $row[Locus_name] </td>"; echo "<td> $row[Transcript_name] </td>"; echo "<td> $row[Gene_name] </td>"; echo "<td> $row[Description] </td>"; echo "</tr>"; } echo "</table>"; for($i=1; $i<=$total_page; $i++) { if($i == $now) { echo("[$i]"); // 현재 페이지는 링크 안함 } else { echo (" <a href = hapmap_search_gene.php?now=$i&Locus_name=$Locus_name>[$i] </a>"); } } ?> </center> </body> </html>

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.70.0090.00618.32
8.3.60.0040.01118.18
8.3.50.0110.00521.99
8.3.40.0070.00718.55
8.3.30.0000.01418.84
8.3.20.0040.00420.09
8.3.10.0040.00421.91
8.3.00.0000.00722.44
8.2.190.0000.01416.58
8.2.180.0170.00316.50
8.2.170.0070.01022.96
8.2.160.0120.00318.84
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0080.00019.38
8.2.110.0080.00022.17
8.2.100.0040.00719.28
8.2.90.0070.00018.91
8.2.80.0050.00317.97
8.2.70.0060.00317.38
8.2.60.0000.00817.67
8.2.50.0080.00018.07
8.2.40.0030.00518.09
8.2.30.0040.00417.90
8.2.20.0000.00817.55
8.2.10.0030.00519.41
8.2.00.0070.00019.33
8.1.280.0110.00425.92
8.1.270.0090.00021.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00323.83
8.1.230.0080.00419.21
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00817.22
8.1.190.0050.00317.40
8.1.180.0030.00518.10
8.1.170.0000.00818.46
8.1.160.0000.00721.91
8.1.150.0030.00518.46
8.1.140.0040.00417.29
8.1.130.0000.00717.78
8.1.120.0000.00717.38
8.1.110.0040.00417.31
8.1.100.0040.00417.29
8.1.90.0070.00017.26
8.1.80.0030.00317.33
8.1.70.0030.00317.25
8.1.60.0060.00317.44
8.1.50.0060.00317.30
8.1.40.0000.00817.26
8.1.30.0050.00317.38
8.1.20.0040.00417.40
8.1.10.0000.00817.41
8.1.00.0040.00417.23
8.0.300.0000.00718.77
8.0.290.0000.00717.16
8.0.280.0000.00818.38
8.0.270.0070.00017.19
8.0.260.0060.00316.74
8.0.250.0040.00416.83
8.0.240.0050.00216.71
8.0.230.0070.00016.83
8.0.220.0030.00316.76
8.0.210.0030.00316.66
8.0.200.0030.00316.70
8.0.190.0050.00316.74
8.0.180.0070.00016.68
8.0.170.0000.00816.78
8.0.160.0000.00716.63
8.0.150.0050.00316.54
8.0.140.0000.00816.74
8.0.130.0020.00513.45
8.0.120.0040.00416.75
8.0.110.0030.00616.75
8.0.100.0070.00016.70
8.0.90.0040.00416.69
8.0.80.0060.00916.80
8.0.70.0060.00316.61
8.0.60.0030.00316.73
8.0.50.0040.00416.63
8.0.30.0100.01017.04
8.0.20.0120.00817.40
8.0.10.0070.00016.87
8.0.00.0130.00516.71
7.4.330.0000.00515.12
7.4.320.0000.00616.41
7.4.300.0040.00416.21
7.4.290.0000.00716.43
7.4.280.0030.00316.36
7.4.270.0000.00616.29
7.4.260.0030.00316.37
7.4.250.0000.00816.37
7.4.240.0040.00316.34
7.4.230.0080.00016.46
7.4.220.0090.00916.46
7.4.210.0060.00916.37
7.4.200.0000.00716.46
7.4.190.0000.00616.17
7.4.160.0080.00816.21
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0110.00716.46
7.4.120.0110.00816.23
7.4.110.0030.01416.42
7.4.100.0120.00916.26
7.4.90.0090.00916.35
7.4.80.0130.00619.39
7.4.70.0100.01316.34
7.4.60.0100.00716.48
7.4.50.0000.00516.23
7.4.40.0150.00022.77
7.4.30.0090.01216.28
7.4.00.0060.01014.57
7.3.330.0030.00313.25
7.3.320.0060.00013.27
7.3.310.0070.00016.05
7.3.300.0000.00716.11
7.3.290.0090.00616.11
7.3.280.0050.01116.08
7.3.270.0070.01017.40
7.3.260.0140.00716.09
7.3.250.0080.01016.44
7.3.240.0030.01416.08
7.3.230.0090.00916.39
7.3.210.0100.01316.29
7.3.200.0110.00519.39
7.3.190.0060.01516.35
7.3.180.0080.00816.41
7.3.170.0090.00616.27
7.3.160.0080.00816.37
7.3.120.0000.01414.62
7.3.10.0080.00816.56
7.3.00.0000.00816.37
7.2.330.0180.00016.29
7.2.320.0170.00516.55
7.2.310.0060.01016.37
7.2.300.0100.00616.43
7.2.290.0000.01616.44
7.2.130.0040.01116.48
7.2.120.0090.00016.63
7.2.110.0120.00616.70
7.2.100.0000.01016.75
7.2.90.0030.01216.59
7.2.80.0100.00716.47
7.2.70.0090.00916.89
7.2.60.0050.01016.84
7.2.50.0150.00316.78
7.2.40.0060.00916.70
7.2.30.0130.00316.43
7.2.20.0130.00616.73
7.2.10.0060.00916.14
7.2.00.0050.01117.92
7.1.250.0070.00315.67
7.1.200.0060.00615.70
7.1.100.0000.01118.13
7.1.70.0000.00716.94
7.1.60.0130.01019.82
7.1.50.0060.01616.82
7.1.00.0130.06722.44
7.0.200.0060.00616.82
7.0.140.0030.07322.11
7.0.60.0070.06321.72
7.0.50.0000.04317.85
7.0.40.0100.03719.98
7.0.30.0270.08020.09
7.0.20.0470.07320.21
7.0.10.0030.04320.02
7.0.00.0030.06020.00
5.6.280.0000.07721.16
5.6.210.0100.07320.54
5.6.200.0000.04318.23
5.6.190.0070.07320.60
5.6.180.0130.09720.36
5.6.170.0330.06720.38
5.6.160.0070.08020.40
5.6.150.0000.04318.10
5.6.140.0070.06718.18
5.6.130.0170.07018.17
5.6.120.0030.06320.97
5.6.110.0070.08721.11
5.6.100.0100.03320.87
5.6.90.0100.06321.09
5.6.80.0000.08020.29
5.5.350.0330.05320.33
5.5.340.0070.08018.02
5.5.330.0100.08020.37
5.5.320.0300.05320.18
5.5.310.0400.06020.23
5.5.300.0130.07718.02
5.5.290.0030.08317.87
5.5.280.0130.07720.77
5.5.270.0030.04720.77
5.5.260.0170.08020.77
5.5.250.0030.08020.59
5.5.240.0270.06720.21
5.4.450.1130.03019.55
5.4.440.0200.03319.10
5.4.430.1430.04019.40
5.4.420.1400.03319.38
5.4.410.1230.03719.29
5.4.400.0730.03719.08
5.4.390.0670.03318.95
5.4.380.0200.06018.61
5.4.370.0470.03718.59
5.4.360.0300.04718.67
5.4.350.0430.04018.51
5.4.340.0270.06018.47
5.4.320.0050.03812.46
5.4.310.0060.03612.45
5.4.300.0090.03812.46
5.4.290.0060.04512.45
5.4.280.0070.03812.35
5.4.270.0130.07018.86
5.4.260.0030.08018.75
5.4.250.0230.05718.86
5.4.240.0230.05319.02
5.4.230.0130.06018.64
5.4.220.0070.06018.72
5.4.210.0130.07318.79
5.4.200.0130.05018.99
5.4.190.0100.05018.88
5.4.180.0130.05718.73
5.4.170.0270.05718.93
5.4.160.0100.06018.86
5.4.150.0130.05319.02
5.4.140.0070.05316.49
5.4.130.0130.05016.22
5.4.120.0230.05716.26
5.4.110.0070.07716.42
5.4.100.0100.05316.50
5.4.90.0170.04016.44
5.4.80.0100.06716.48
5.4.70.0200.06016.44
5.4.60.0100.05716.32
5.4.50.0070.05016.47
5.4.40.0000.06016.52
5.4.30.0100.06016.20
5.4.20.0130.05016.20
5.4.10.0100.06316.47
5.4.00.0130.04015.76
5.3.290.0100.03712.80
5.3.280.0100.06014.51
5.3.270.0130.05714.44
5.3.260.0070.05014.59
5.3.250.0100.07014.50
5.3.240.0030.05314.59
5.3.230.0100.07014.43
5.3.220.0070.05314.42
5.3.210.0000.06314.26
5.3.200.0130.04714.55
5.3.190.0100.06714.66
5.3.180.0200.03714.57
5.3.170.0070.05014.26
5.3.160.0100.05014.41
5.3.150.0030.05314.56
5.3.140.0300.04014.41
5.3.130.0070.06314.55
5.3.120.0030.05714.70
5.3.110.0100.05014.63
5.3.100.0130.05714.12
5.3.90.0130.06714.02
5.3.80.0130.06014.06
5.3.70.0070.05314.05
5.3.60.0100.05714.02
5.3.50.0170.05713.98
5.3.40.0200.05313.64
5.3.30.0230.05013.75
5.3.20.0070.06313.57
5.3.10.0200.05713.66
5.3.00.0170.05713.66
5.2.170.0100.04011.08
5.2.160.0070.04011.00
5.2.150.0070.04311.05
5.2.140.0030.04311.02
5.2.130.0070.04011.00
5.2.120.0130.04711.12
5.2.110.0000.05711.12
5.2.100.0100.03711.10
5.2.90.0130.03311.24
5.2.80.0100.04011.04
5.2.70.0070.04311.24
5.2.60.0070.05711.06
5.2.50.0130.04010.94
5.2.40.0030.05311.02
5.2.30.0070.04010.88
5.2.20.0030.05010.97
5.2.10.0070.03710.93
5.2.00.0100.03310.66
5.1.60.0100.03010.03
5.1.50.0030.0409.91
5.1.40.0170.03710.06
5.1.30.0030.03710.40
5.1.20.0030.05710.28
5.1.10.0100.04310.13
5.1.00.0030.04310.03
5.0.50.0070.0378.60
5.0.40.0030.0278.47
5.0.30.0130.0378.27
5.0.20.0100.0238.18
5.0.10.0000.0338.28
5.0.00.0000.0477.99
4.4.90.0100.0176.08
4.4.80.0030.0206.08
4.4.70.0030.0236.08
4.4.60.0000.0306.08
4.4.50.0070.0236.08
4.4.40.0000.0476.08
4.4.30.0030.0206.08
4.4.20.0070.0276.08
4.4.10.0000.0236.08
4.4.00.0030.0436.08
4.3.110.0030.0306.08
4.3.100.0030.0306.08
4.3.90.0000.0306.08
4.3.80.0070.0406.08
4.3.70.0030.0206.08
4.3.60.0000.0276.08
4.3.50.0030.0306.08
4.3.40.0130.0306.08
4.3.30.0070.0236.08
4.3.20.0030.0206.08
4.3.10.0030.0276.08
4.3.00.0170.01313.34

preferences:
34.28 ms | 401 KiB | 5 Q