3v4l.org

run code in 300+ PHP versions simultaneously
<?php // set up DB $conn = mysql_connect("localhost", "root", "root"); mysql_select_db("catweb_database"); // set your db encoding -- for ascent chars (if required) mysql_query("SET NAMES 'utf8'"); // include and create object include("inc/jqgrid_dist.php"); session_start(); $id_user = $_SESSION['id_user']; $col = array(); $col["title"] = "Key"; $col["name"] = "id_cliente"; $col["sortable"] = false; $col["search"] = false; $col["editable"] = false; $col["hidden"] = true; $cols[] = $col; $col = array(); $col["title"] = "Id Utente"; $col["name"] = "IDUTENTE"; $col["sortable"] = false; // this column is not sortable $col["search"] = false; // this column is not searchable $col["editable"] = true; $col["editoptions"] = array("value"=>$id_user); $col["hidden"] = true; $cols[] = $col; $col = array(); $col["title"] = "Ragione Sociale"; $col["name"] = "ragione_sociale"; # $col["width"] = "300"; // not specifying width will expand to fill space $col["sortable"] = true; // this column is not sortable $col["search"] = true; // this column is not searchable $col["editrules"] = array("required"=>true); $col["editable"] = true; $cols[] = $col; $col = array(); $col["title"] = "Recapito"; $col["name"] = "recapito"; # $col["width"] = "300"; // not specifying width will expand to fill space $col["sortable"] = false; // this column is not sortable $col["search"] = false; // this column is not searchable $col["editrules"] = array("required"=>true); $col["editable"] = true; $cols[] = $col; $col = array(); $col["title"] = "e-Mail"; $col["name"] = "email"; # $col["width"] = "300"; // not specifying width will expand to fill space $col["sortable"] = false; // this column is not sortable $col["search"] = false; // this column is not searchable $col["editable"] = true; $cols[] = $col; $col = array(); $col["title"] = "Indirizzo"; $col["name"] = "indirizzo"; # $col["width"] = "300"; // not specifying width will expand to fill space $col["sortable"] = false; // this column is not sortable $col["search"] = false; // this column is not searchable $col["editable"] = true; $col["edittype"] = "textarea"; $cols[] = $col; $col = array(); $col["title"] = "Citta'"; $col["name"] = "citta"; # $col["width"] = "300"; // not specifying width will expand to fill space $col["sortable"] = false; // this column is not sortable $col["search"] = false; // this column is not searchable $col["editable"] = true; $cols[] = $col; $g = new jqgrid(); // set few params $grid["caption"] = "Elenco Clienti"; $grid["multiselect"] = false; $grid["autowidth"] = true; // expand grid to screen width $g->set_options($grid); $g->set_actions(array( "add"=>true, "edit"=>true, "delete"=>true, "rowactions"=>true, "export"=>false, "autofilter" => true, "search" => "simple", //"inlineadd" => true, "showhidecolumns" => false ) ); // set database table for CRUD operations $g->table = "clienti"; // subqueries are also supported now (v1.2) $g->select_command = "SELECT * FROM clienti WHERE idUtente = $id_user"; // pass the cooked columns to grid $g->set_columns($cols); // render grid $out = $g->render("Clienti"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <link rel="stylesheet" type="text/css" media="screen" href="js/themes/redmond/jquery-ui.custom.css"></link> <link rel="stylesheet" type="text/css" media="screen" href="js/jqgrid/css/ui.jqgrid.css"></link> <script src="js/jquery.min.js" type="text/javascript"></script> <script src="js/jqgrid/js/i18n/grid.locale-it.js" type="text/javascript"></script> <script src="js/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="js/themes/jquery-ui.custom.min.js" type="text/javascript"></script> </head> <body> <div style="margin:10px"> <center><input name="" type="image" src="images/elenco_clienti.png" /> </center> <hr /> <div id="code" align="left"><a href="startpage.php" style="text-decoration: none;"><input value="Home" type="button"></a> <id="code" align="left"><a href="riparazioni.php" style="text-decoration: none;"><input value="Schede in Lavorazione" type="button"></a> <id="code" align="left"><a href="schederivenditori.php" style="text-decoration: none;"><input value="Schede CAT" type="button"></a></div> <hr /> <?php echo $out?> </div> </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.60.0100.01018.30
8.3.50.0090.00617.96
8.3.40.0000.01418.82
8.3.30.0110.00718.67
8.3.20.0040.00420.18
8.3.10.0040.00423.59
8.3.00.0040.00717.93
8.2.180.0140.00318.53
8.2.170.0110.01122.96
8.2.160.0070.00720.66
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00021.12
8.2.110.0070.00320.94
8.2.100.0040.01119.45
8.2.90.0050.00318.09
8.2.80.0000.00720.44
8.2.70.0040.00417.80
8.2.60.0070.00417.91
8.2.50.0000.00718.10
8.2.40.0000.00820.32
8.2.30.0000.00719.18
8.2.20.0040.00418.00
8.2.10.0000.00818.14
8.2.00.0050.00218.14
8.1.280.0080.01125.92
8.1.270.0030.00622.26
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00420.64
8.1.230.0120.00020.91
8.1.220.0080.00017.78
8.1.210.0000.00818.77
8.1.200.0070.00317.34
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0080.00018.63
8.1.160.0000.00818.76
8.1.150.0020.00520.25
8.1.140.0050.00217.66
8.1.130.0000.00718.95
8.1.120.0030.00517.43
8.1.110.0000.00717.32
8.1.100.0040.00417.30
8.1.90.0000.00717.42
8.1.80.0060.00317.47
8.1.70.0000.00817.36
8.1.60.0050.00517.57
8.1.50.0050.00517.47
8.1.40.0040.00417.50
8.1.30.0030.00517.60
8.1.20.0080.00017.66
8.1.10.0000.00717.59
8.1.00.0050.00317.49
8.0.300.0080.00021.87
8.0.290.0040.00416.88
8.0.280.0040.00418.33
8.0.270.0070.00017.19
8.0.260.0000.00616.78
8.0.250.0030.00316.91
8.0.240.0000.00717.00
8.0.230.0000.00716.87
8.0.220.0040.00416.84
8.0.210.0000.00716.88
8.0.200.0070.00017.05
8.0.190.0000.00817.04
8.0.180.0000.00716.98
8.0.170.0040.00417.02
8.0.160.0000.00817.05
8.0.150.0080.00016.86
8.0.140.0040.00416.82
8.0.130.0000.00613.48
8.0.120.0050.00316.95
8.0.110.0050.00316.84
8.0.100.0000.00716.84
8.0.90.0040.00416.86
8.0.80.0070.01316.94
8.0.70.0040.00416.98
8.0.60.0000.00817.00
8.0.50.0040.00416.81
8.0.30.0060.01416.96
8.0.20.0120.00717.40
8.0.10.0000.00717.07
8.0.00.0100.01016.78
7.4.330.0050.00015.55
7.4.320.0030.00316.43
7.4.300.0030.00316.62
7.4.290.0070.00016.51
7.4.280.0080.00016.50
7.4.270.0030.00516.60
7.4.260.0000.00716.60
7.4.250.0050.00316.48
7.4.240.0070.00016.53
7.4.230.0000.00716.60
7.4.220.0040.00416.33
7.4.210.0110.00616.67
7.4.200.0040.00416.50
7.4.160.0090.00916.51
7.4.150.0110.00717.40
7.4.140.0090.01017.86
7.4.130.0140.00316.62
7.4.120.0110.01016.54
7.4.110.0180.00016.38
7.4.100.0070.01416.50
7.4.90.0100.01016.63
7.4.80.0180.00619.39
7.4.70.0060.01216.57
7.4.60.0090.00616.49
7.4.50.0060.00916.62
7.4.40.0060.01016.63
7.4.00.0070.01114.96
7.3.330.0000.00513.32
7.3.320.0030.00313.19
7.3.310.0040.00416.30
7.3.300.0030.00516.20
7.3.290.0130.00616.29
7.3.280.0140.00216.34
7.3.270.0090.00917.40
7.3.260.0130.00716.40
7.3.240.0080.01316.45
7.3.230.0060.00916.64
7.3.210.0140.00316.33
7.3.200.0100.00716.69
7.3.190.0060.01616.64
7.3.180.0100.00616.38
7.3.170.0050.01116.39
7.3.160.0090.01216.44
7.2.330.0140.00516.29
7.2.320.0100.00716.65
7.2.310.0070.01016.63
7.2.300.0140.01216.58
7.2.290.0110.00716.41
7.2.60.0030.00716.49
7.2.20.0190.01317.75
7.2.10.0190.01717.50
7.2.00.0260.01117.72
7.1.200.0070.00715.39
7.1.140.0530.01416.34
7.1.130.0240.01216.69
7.1.120.0250.01016.81
7.1.110.0230.01115.86
7.1.100.0220.01516.04
7.1.90.0170.01015.99
7.1.80.0190.01115.93
7.1.70.0230.00815.09
7.1.60.0400.01233.16
7.1.50.0280.01332.82
7.1.40.0320.02032.67
7.1.30.0280.01832.48
7.1.20.0440.01032.79
7.1.10.0220.01014.71
7.1.00.0200.01014.75
7.0.270.0200.01316.50
7.0.260.0180.01416.20
7.0.250.0230.01115.77
7.0.240.0220.00815.68
7.0.230.0160.01015.80
7.0.220.0190.00815.70
7.0.210.0230.00714.73
7.0.200.0150.01614.81
7.0.190.0140.00914.88
7.0.180.0200.01114.40
7.0.170.0210.00814.36
7.0.160.0210.01114.42
7.0.150.0160.01514.46
7.0.140.0210.01214.34
7.0.130.0180.01214.54
7.0.120.0530.01014.51
7.0.110.0230.01014.34
7.0.100.0180.01014.59
7.0.90.0210.01114.32
7.0.80.0230.01014.42
7.0.70.0220.00914.35
7.0.60.0180.01014.23
7.0.50.0150.00814.33
7.0.40.0210.00814.41
7.0.30.0240.00914.55
7.0.20.0140.01114.53
7.0.10.0130.00914.50
7.0.00.0160.01014.53
5.6.300.0150.07420.81
5.6.290.0180.07120.82
5.6.280.0240.06820.84
5.6.270.0210.06520.98
5.6.260.0100.07520.84
5.6.250.0070.07220.86
5.6.240.0170.06920.90
5.6.230.0110.07220.91
5.6.220.0150.06220.83
5.6.210.0180.06220.64
5.6.200.0180.05720.78
5.6.190.0100.07720.87
5.6.180.0120.06520.89
5.6.170.0100.05720.74
5.6.160.0130.06420.95
5.6.150.0130.06220.85
5.6.140.0180.05820.92
5.6.130.0080.06320.84
5.6.120.0150.05720.81
5.6.110.0120.06020.84
5.6.100.0100.06220.86
5.6.90.0100.07420.86
5.6.80.0100.05620.18
5.6.70.0100.06320.34
5.6.60.0080.07020.10
5.6.50.0120.06120.33
5.6.40.0180.05920.19
5.6.30.0070.07120.18
5.6.20.0120.07520.08
5.6.10.0110.06720.30
5.6.00.0100.06320.23
5.5.380.0200.07517.42
5.5.370.0130.05117.51
5.5.360.0100.06017.41
5.5.350.0200.06717.39
5.5.340.0100.06017.97
5.5.330.0160.06617.88
5.5.320.0140.06918.05
5.5.310.0200.07517.90
5.5.300.0160.05117.88
5.5.290.0100.06317.88
5.5.280.0170.05417.93
5.5.270.0100.06417.90
5.5.260.0160.06017.79
5.5.250.0190.05117.69
5.5.240.0070.05817.44
5.5.230.0100.05317.45
5.5.220.0100.05417.45
5.5.210.0140.05617.34
5.5.200.0130.05917.24
5.5.190.0130.05617.32
5.5.180.0260.05917.13
5.5.160.0030.06417.31
5.5.150.0100.06317.13
5.5.140.0130.06517.05
5.5.130.0170.06617.14
5.5.120.0100.07617.32
5.5.110.0190.06117.27
5.5.100.0160.05217.16
5.5.90.0180.04317.13
5.5.80.0140.05117.33
5.5.70.0200.06717.30
5.5.60.0120.06917.31
5.5.50.0230.06117.21
5.5.40.0070.06917.31
5.5.30.0060.06817.01
5.5.20.0100.06717.02
5.5.10.0190.05817.04
5.5.00.0100.05517.00
5.4.450.0100.05919.22
5.4.440.0130.05319.34
5.4.430.0090.06619.11
5.4.420.0200.04419.36
5.4.410.0070.05819.24
5.4.400.0230.05918.97
5.4.390.0100.07918.92
5.4.380.0070.06218.80
5.4.370.0180.04318.95
5.4.360.0070.06718.92
5.4.350.0040.06919.18
5.4.340.0200.06619.08
5.4.320.0100.08618.99
5.4.310.0170.05818.96
5.4.300.0220.04319.08
5.4.290.0100.07118.89
5.4.280.0100.06519.00
5.4.270.0130.06819.01
5.4.260.0130.06419.11
5.4.250.0070.07619.17
5.4.240.0190.06718.95
5.4.230.0170.06518.77
5.4.220.0070.07919.08
5.4.210.0160.07118.88
5.4.200.0230.05918.77
5.4.190.0110.07419.00
5.4.180.0130.07219.16
5.4.170.0160.06618.98
5.4.160.0200.04418.77
5.4.150.0180.05218.98
5.4.140.0180.06016.55
5.4.130.0070.07416.27
5.4.120.0170.04616.55
5.4.110.0070.07416.57
5.4.100.0150.04416.60
5.4.90.0060.05216.54
5.4.80.0100.04616.35
5.4.70.0060.07416.49
5.4.60.0130.04416.49
5.4.50.0140.05516.33
5.4.40.0130.04516.54
5.4.30.0130.06016.38
5.4.20.0100.04616.50
5.4.10.0100.04816.61
5.4.00.0060.04815.82
5.3.290.0160.07314.67
5.3.280.0060.07414.68
5.3.270.0100.06414.77
5.3.260.0130.07914.72
5.3.250.0100.05114.74
5.3.240.0170.06414.78
5.3.230.0160.05514.79
5.3.220.0240.04914.52
5.3.210.0240.04214.57
5.3.200.0070.05214.70
5.3.190.0180.04614.40
5.3.180.0130.04714.57
5.3.170.0160.05014.74
5.3.160.0030.06614.73
5.3.150.0140.04814.57
5.3.140.0060.05714.62
5.3.130.0030.05714.71
5.3.120.0100.07114.71
5.3.110.0030.05614.56
5.3.100.0070.05814.18
5.3.90.0000.05714.18
5.3.80.0070.05913.98
5.3.70.0130.04414.10
5.3.60.0140.05414.00
5.3.50.0130.06614.08
5.3.40.0130.05914.05
5.3.30.0140.05913.91
5.3.20.0100.06313.67
5.3.10.0170.05413.83
5.3.00.0130.05613.74
5.2.170.0090.03911.32
5.2.160.0070.04011.10
5.2.150.0070.04110.98
5.2.140.0100.05311.31
5.2.130.0190.04211.28
5.2.120.0160.03111.34
5.2.110.0100.04811.24
5.2.100.0100.03611.27
5.2.90.0160.02911.36
5.2.80.0100.04710.93
5.2.70.0100.05311.27
5.2.60.0040.04411.30
5.2.50.0060.04111.27
5.2.40.0260.03211.00
5.2.30.0070.03911.21
5.2.20.0140.03211.15
5.2.10.0120.05010.88
5.2.00.0170.04710.92
5.1.60.0000.04610.00
5.1.50.0100.0439.90
5.1.40.0120.02710.03
5.1.30.0130.04410.36
5.1.20.0070.03810.26
5.1.10.0100.04110.38
5.1.00.0140.03810.40
5.0.50.0030.0429.35
5.0.40.0040.0399.35
5.0.30.0070.0419.35
5.0.20.0060.0289.35
5.0.10.0030.0339.35
5.0.00.0030.0429.35
4.4.90.0060.0299.35
4.4.80.0000.0269.35
4.4.70.0040.0229.35
4.4.60.0060.0199.35
4.4.50.0100.0239.35
4.4.40.0070.0329.35
4.4.30.0060.0239.35
4.4.20.0030.0319.35
4.4.10.0070.0319.35
4.4.00.0030.0479.35
4.3.110.0040.0329.35
4.3.100.0100.0209.35
4.3.90.0060.0199.35
4.3.80.0030.0349.35
4.3.70.0000.0269.35
4.3.60.0070.0269.35
4.3.50.0070.0269.35
4.3.40.0030.0429.35
4.3.30.0000.0269.35
4.3.20.0000.0329.35
4.3.10.0030.0229.35
4.3.00.0000.0259.35

preferences:
57.31 ms | 400 KiB | 5 Q