3v4l.org

run code in 300+ PHP versions simultaneously
<?php //////////////////////////////////////////////////////////////////*****///////////////////////////////////////////////////////////////////////////////////// // Feedback Pro v1 // // Faculty Evaluation System // // Developed By Shrenik Patel // // July 27, 2009 // // // // Tis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by // // the Free Software Foundation; either version 2 of the License, or (at your option) any later version. // // // // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. // // // //////////////////////////////////////////////////////////////////*****////////////////////////////////////////////////////////////////////////////////////// include('session_chk.php'); include("includes/config_db.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="includes/style.css" /> <title>Add Batch</title> </head> <body> <table width="57%" align="center" border="0" cellpadding="0" cellspacing="1"> <?php include('admin_panel_heading.php'); ?> <tr> <td width="22%" valign="top" bgcolor="#FFFFFF"> </td> <td width="78%" align="center" valign="top" bgcolor="#FFFFFF"> <? if(isset($_POST['submit'])) { $title = $_POST['batch_name']; if(!$title) { echo "Error: Add Batch Name. Please fill it."; } $dup="select * from batch_master where batch_name='".$title."'"; $dup_res=mysql_query($dup) or die(mysql_error()); if(mysql_num_rows($dup_res)==1) { echo "Batch name is already available in database."; } else { $result = mysql_query("INSERT INTO batch_master (batch_name,feedback_no) VALUES ('$title','1')"); echo "<b>Batch is added Successfully!</b><br>You'll be redirected after (1) Seconds"; echo "<meta http-equiv=Refresh content=1;url=batch.php>"; } ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']?>"> <table width="283" border="0" cellpadding="3" cellspacing="1" align="center"> <tr> <td colspan="2" align="center" style="font-size:20px">Add Batch</td> </tr> <tr> <td width="92">Batch Name:</td> <td width="163"><label> <input type="text" name="batch_name" value=""/><!--onkeypress="return isCharOnly(event);"--> </label></td> </tr> <tr> <td>&nbsp;</td> <td><table border="0" width="100%"> <tr><td> <input type="submit" class="button" name="submit" value="Add"></td><td align="right"><input class="button" type="button" name="Back" value="Back" onclick="javascript: history.go(-1)" /></td></tr></table> </td> </tr> </table> </form> <? }//end of else ?> <p>&nbsp;</p></td> </tr> </table> </body> </html> <script language="javascript" type="text/javascript"> function isCharOnly(e) { var unicode=e.charCode? e.charCode : e.keyCode //if (unicode!=8 && unicode!=9) //{ //if the key isn't the backspace key (which we should allow) //disable key press if (unicode==45) return true; if (unicode>48 && unicode<57) //if not a number return false //} } </script>

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.0070.00718.40
8.3.50.0110.01118.05
8.3.40.0090.00619.00
8.3.30.0120.00319.07
8.3.20.0000.00820.27
8.3.10.0080.00321.91
8.3.00.0040.00419.08
8.2.180.0060.01018.38
8.2.170.0070.00722.96
8.2.160.0140.00022.08
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.14
8.2.110.0070.00320.46
8.2.100.0080.00417.91
8.2.90.0050.00317.63
8.2.80.0080.00018.66
8.2.70.0040.00417.93
8.2.60.0040.00418.09
8.2.50.0050.00318.10
8.2.40.0030.00521.06
8.2.30.0040.00419.26
8.2.20.0040.00417.65
8.2.10.0070.00017.98
8.2.00.0030.00517.57
8.1.280.0120.00925.92
8.1.270.0050.00318.86
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00323.77
8.1.230.0060.00623.82
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0000.00818.71
8.1.170.0040.00418.32
8.1.160.0030.00519.02
8.1.150.0050.00218.85
8.1.140.0030.00617.32
8.1.130.0100.00017.70
8.1.120.0030.00317.34
8.1.110.0000.00717.32
8.1.100.0040.00417.28
8.1.90.0000.00717.43
8.1.80.0000.00717.39
8.1.70.0030.00517.46
8.1.60.0030.00617.58
8.1.50.0040.00417.50
8.1.40.0030.00717.54
8.1.30.0040.00417.65
8.1.20.0000.00717.69
8.1.10.0060.00317.56
8.1.00.0050.00317.43
8.0.300.0030.00518.77
8.0.290.0000.01016.88
8.0.280.0000.00718.51
8.0.270.0000.00717.38
8.0.260.0040.00417.41
8.0.250.0030.00517.14
8.0.240.0030.00317.00
8.0.230.0030.00517.07
8.0.220.0000.00717.03
8.0.210.0080.00017.05
8.0.200.0030.00317.08
8.0.190.0040.00417.08
8.0.180.0030.00517.04
8.0.170.0000.00817.09
8.0.160.0040.00416.93
8.0.150.0040.00416.88
8.0.140.0000.00717.05
8.0.130.0070.00013.50
8.0.120.0080.00016.89
8.0.110.0040.00417.05
8.0.100.0050.00316.92
8.0.90.0000.00716.88
8.0.80.0030.01516.98
8.0.70.0040.00416.89
8.0.60.0000.00717.03
8.0.50.0040.00416.82
8.0.30.0010.02117.16
8.0.20.0130.01317.40
8.0.10.0030.00516.84
8.0.00.0150.00616.74
7.4.330.0050.00015.16
7.4.320.0000.00616.62
7.4.300.0030.00316.61
7.4.290.0000.00716.57
7.4.280.0080.00016.50
7.4.270.0070.00016.51
7.4.260.0000.00816.52
7.4.250.0040.00416.47
7.4.240.0030.00516.58
7.4.230.0040.00416.41
7.4.220.0060.01916.48
7.4.210.0080.00816.44
7.4.200.0030.00316.45
7.4.160.0080.01516.36
7.4.150.0120.00617.40
7.4.140.0080.00817.86
7.4.130.0110.00916.43
7.4.120.0080.01016.59
7.4.110.0120.01216.52
7.4.100.0090.00916.48
7.4.90.0090.00916.36
7.4.80.0070.01119.39
7.4.70.0070.01016.39
7.4.60.0040.01616.71
7.4.50.0050.00316.56
7.4.40.0070.01116.74
7.4.30.0000.02216.45
7.4.00.0040.01114.78
7.3.330.0030.00313.09
7.3.320.0030.00313.20
7.3.310.0040.00416.21
7.3.300.0000.00616.40
7.3.290.0070.00816.36
7.3.280.0100.00816.37
7.3.270.0120.00617.40
7.3.260.0060.01916.50
7.3.250.0120.00516.44
7.3.240.0140.00416.40
7.3.230.0130.00316.39
7.3.210.0100.00716.45
7.3.200.0090.00919.39
7.3.190.0070.01016.43
7.3.180.0090.00916.51
7.3.170.0160.00416.46
7.3.160.0040.01216.61
7.2.330.0120.01016.36
7.2.320.0070.01616.75
7.2.310.0060.01816.59
7.2.300.0150.00616.39
7.2.290.0130.00316.65
7.2.60.0060.01016.90
7.2.00.0110.00019.18
7.1.200.0170.00815.31
7.1.100.0150.01516.43
7.1.70.0100.00817.00
7.1.60.0140.01119.22
7.1.50.0060.00916.90
7.1.00.0070.07322.36
7.0.200.0140.00416.53
7.0.140.0030.03721.95
7.0.60.1530.06020.10
7.0.50.0070.08317.91
7.0.40.0030.09020.28
7.0.30.0270.04020.20
7.0.20.0170.04720.01
7.0.10.0100.07320.01
7.0.00.0100.05020.09
5.6.280.0000.07721.08
5.6.210.0300.06320.62
5.6.200.0100.03318.23
5.6.190.0030.08720.42
5.6.180.0330.08720.46
5.6.170.0370.06320.32
5.6.160.0100.04720.41
5.6.150.0070.09018.13
5.6.140.0070.07718.23
5.6.130.0070.08018.17
5.6.120.0070.06321.10
5.6.110.0070.04020.98
5.6.100.0100.06720.98
5.6.90.0070.08320.96
5.6.80.0170.07320.41
5.5.350.0130.04320.35
5.5.340.0130.03717.95
5.5.330.0100.07720.07
5.5.320.0270.04020.30
5.5.310.0270.04720.31
5.5.300.0030.04317.97
5.5.290.0070.08018.01
5.5.280.0030.08320.89
5.5.270.0070.04020.73
5.5.260.0030.06720.73
5.5.250.0030.06720.59
5.5.240.0170.03320.16
5.4.450.0470.07719.40
5.4.440.0400.05719.43
5.4.430.0270.05319.32
5.4.420.0230.05319.51
5.4.410.0470.04719.39
5.4.400.0300.06019.03
5.4.390.0370.04718.93
5.4.380.0300.05718.86
5.4.370.0230.06318.85
5.4.360.0300.05718.86
5.4.350.0530.04718.87
5.4.340.0670.06018.95
5.4.320.1030.06019.13
5.4.310.0770.04718.96
5.4.300.0730.05718.98
5.4.290.0700.04318.98
5.4.280.0830.07019.21
5.4.270.0830.06019.12
5.4.260.0870.05318.86
5.4.250.0730.06019.16
5.4.240.0770.06018.84
5.4.230.0900.05718.84
5.4.220.0300.05719.21
5.4.210.0370.07318.84
5.4.200.0330.04319.11
5.4.190.0200.06719.20
5.4.180.0270.04719.18
5.4.170.0300.06018.96
5.4.160.0270.05019.01
5.4.150.0400.05719.05
5.4.140.0730.04716.28
5.4.130.0200.05316.27
5.4.120.0170.05016.22
5.4.110.0270.04716.34
5.4.100.0330.04316.33
5.4.90.0300.04316.20
5.4.80.0300.04316.22
5.4.70.0300.05716.41
5.4.60.0230.05716.44
5.4.50.0130.05716.46
5.4.40.0300.04716.23
5.4.30.0300.06016.30
5.4.20.0370.04316.22
5.4.10.0370.05016.24
5.4.00.0200.05715.54
5.3.290.0800.05014.61
5.3.280.0430.06314.50
5.3.270.0170.05714.51
5.3.260.0370.04714.47
5.3.250.0300.05014.52
5.3.240.0200.05314.55
5.3.230.0300.05014.52
5.3.220.0100.06014.42
5.3.210.0270.05014.49
5.3.200.0300.04714.48
5.3.190.0270.05314.45
5.3.180.0170.05014.54
5.3.170.0270.05314.37
5.3.160.0270.05314.37
5.3.150.0230.05014.47
5.3.140.0230.04714.54
5.3.130.0270.05714.37
5.3.120.0200.05714.46
5.3.110.0230.05014.47
5.3.100.0300.04713.87
5.3.90.0430.05713.95
5.3.80.0330.04313.87
5.3.70.0300.04713.79
5.3.60.0300.06313.77
5.3.50.0370.04713.80
5.3.40.0200.05713.90
5.3.30.0300.05013.76
5.3.20.0300.04013.46
5.3.10.0230.05713.57
5.3.00.0230.05013.55
5.2.170.0230.04011.07
5.2.160.0130.04311.06
5.2.150.0200.04010.94
5.2.140.0170.05011.07
5.2.130.0230.04311.09
5.2.120.0170.04011.02
5.2.110.0270.03011.06
5.2.100.0200.04011.13
5.2.90.0300.03310.90
5.2.80.0270.03711.14
5.2.70.0370.03711.13
5.2.60.0230.05310.86
5.2.50.0330.04011.03
5.2.40.0170.05010.92
5.2.30.0370.04010.89
5.2.20.0470.04710.75
5.2.10.0200.04010.91
5.2.00.0300.04310.74
5.1.60.0230.03310.04
5.1.50.0230.03710.01
5.1.40.0230.0279.95
5.1.30.0230.03310.36
5.1.20.0230.04710.21
5.1.10.0430.0409.91
5.1.00.0570.03310.09
5.0.50.0070.0278.53
5.0.40.0070.0338.39
5.0.30.0070.0408.05
5.0.20.0100.0208.03
5.0.10.0000.0408.16
5.0.00.0070.0408.00
4.4.90.0000.0236.13
4.4.80.0030.0236.13
4.4.70.0030.0206.13
4.4.60.0000.0236.13
4.4.50.0070.0206.13
4.4.40.0030.0436.13
4.4.30.0030.0206.13
4.4.20.0030.0306.13
4.4.10.0030.0236.13
4.4.00.0000.0376.13
4.3.110.0070.0276.13
4.3.100.0030.0206.13
4.3.90.0100.0236.13
4.3.80.0000.0376.13
4.3.70.0100.0136.13
4.3.60.0070.0176.13
4.3.50.0030.0206.13
4.3.40.0030.0406.13
4.3.30.0030.0206.13
4.3.20.0070.0206.13
4.3.10.0000.0276.13
4.3.00.0130.0276.13

preferences:
56.93 ms | 400 KiB | 5 Q