3v4l.org

run code in 300+ PHP versions simultaneously
<?php############################################################################# A Project of TNET Services, Inc. and Saratoga-Weather.org (Canada/World-ML template set)############################################################################## Project: Sample Included Website Design# Module: sample.php# Purpose: Sample Page# Authors: Kevin W. Reed <kreed@tnet.com># TNET Services, Inc.## Copyright: (c) 1992-2007 Copyright TNET Services, Inc.############################################################################# This 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.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA############################################################################# This document uses Tab 4 Settings############################################################################//Version 1.00 - 05-Feb-2013 - initial release//Version 1.01 - 09-Feb-2013 - added default HTML if missing gauges-ss-basic-inc.php file.require_once("Settings.php");require_once("common.php");############################################################################$useHTML5 = true; // force this page to use HTML5 instead of XHTML 1.0-Transitional$useUTF8 = true; // force this page to convert language files to UTF8 for display#$TITLE = langtransstr($SITE['organ']) . " - " .langtransstr('Current Weather Gauges');$showGizmo = true; // set to false to exclude the gizmoinclude("top.php");############################################################################# Required setting:#$ssgDir = './ssg/'; // set to relative directory location of the SteelSeries gauge directory## Note: the Steel Series Gauges are available from http://wiki.sandaysoft.com/a/SteelSeries_Gauges# and must be installed in the subdirectory listed above and the scripts/gauges.js# file configured for your weather software and location of the required# data file (weather software specific). The gauges-ss-basic-inc.php file is distributed# by Mark with the SteelSeries distribution and should be in the $ssgDir directory.#############################################################################?> <link rel="stylesheet" href="<?php echo $ssgDir;?>css/gauges-ss.css"></head><body><?php############################################################################include("header.php");############################################################################include("menubar.php");?><div id="main-copy"> <h2><?php langtrans('Current Weather Gauges'); ?></h2> <p>&nbsp;</p><?php // if(! file_exists($ssgDir."gauges-ss-basic-inc.php")) {// print "<!-- Steel Series Gauges template (gauges-ss-basic-inc.php) not found in $ssgDir. ".// "Using default HTML for gauges. -->\n"; gen_default_html($ssgDir); //// include_once($ssgDir."gauges-ss-basic-inc.php"); // } $ssLanguages = array( // available languages for the Steel Series Gauges by Mark Crossley // from the LANG.ll= entries in $ssGdir scripts/language.min.js file 'en' => 'EN', // english 'fr' => 'FR', // french 'de' => 'DE', // german 'nl' => 'NL', // dutch 'se' => 'SE', // swedish 'dk' => 'DK', // danish 'fi' => 'FI', // finnish (Suomi) 'no' => 'NO', // norwegian 'it' => 'IT', // italian 'es' => 'ES', // spanish 'ct' => 'CT', // catalan 'el' => 'GR', // greek ); if(isset($ssLanguages[$SITE['lang']])) { $toLang = $ssLanguages[$SITE['lang']]; } else { $toLang = 'EN'; print "<p><small><strong>Note:</strong> no lang='".$SITE['lang']."' (".ucfirst($SITE['WULanguages'][$SITE['lang']]).") language translation is available. English is used for gauge legends instead.</small></p>\n"; } print "<script type=\"text/javascript\"> changeLang(LANG.$toLang); // change SteelSeries language\n</script>\n"; ?></div><!-- end main-copy --><?php############################################################################include("footer.php");############################################################################# End of Page############################################################################function gen_default_html ($ssgDir) {print '<!-- default HTML is being used --><noscript> <h2 style="color:red; text-align:center">&gt;&gt;This pages requires JavaScript enabling in your browser.&lt;&lt;<br>&gt;&gt;Please enable scripting it to enjoy this site at its best.&lt;&lt;</h2></noscript><div class="row"> <canvas id="canvas_led" width="25" height="25"></canvas>&nbsp;&nbsp;&nbsp; <canvas id="canvas_status" width="350" height="25"></canvas>&nbsp;&nbsp; <canvas id="canvas_timer" width="50" height="25"></canvas></div> <!--row--> <div class="row"> <div class="gauge"> <div id="tip_0"> <canvas id="canvas_temp" width="200" height="200"></canvas> </div> </div> <div class="gauge"> <div id="tip_1"> <canvas id="canvas_dew" width="200" height="200"></canvas> </div> </div> <div class="gauge"> <div id="tip_4"> <canvas id="canvas_hum" width="200" height="200"></canvas> </div> </div></div> <!--row--> <div> <img style="position:absolute; top:440px; left:370px; width:200px; height:32px" src="./buttons/temp.jpg" alt="TEMPERATURE"> <img style="position:absolute; top:440px; left:585px; width:200px; height:32px" src="./buttons/dewpt.jpg" alt="DEW POINT"> <img style="position:absolute; top:440px; left:800px; width:200px; height:32px" src="./buttons/hum.jpg" alt="HUMIDITY"></div><div> <br /><br /><br /></div> <div class="row"> <div id="tip_5" class="gauge"> <canvas id="canvas_baro" width="200" height="200"></canvas> </div> <div id="tip_2" class="gauge"> <canvas id="canvas_rain" width="200" height="200"></canvas> </div> <div id="tip_3" class="gauge"> <canvas id="canvas_rrate" width="200" height="200"></canvas> </div></div> <!--row--> <div> <img style="position:absolute; top:710px; left:370px; width:200px; height:32px" src="./buttons/pres.jpg" alt="PRESSURE"> <img style="position:absolute; top:710px; left:585px; width:200px; height:32px" src="./buttons/rainfall.jpg" alt="RAINFALL"> <img style="position:absolute; top:710px; left:800px; width:200px; height:32px" src="./buttons/rainrate.jpg" alt="RAIN RATE"></div><div> <br /><br /><br /></div><div class="row"> <div id="tip_6" class="gauge"> <canvas id="canvas_wind" width="200" height="200"></canvas> </div> <div id="tip_7" class="gauge"> <canvas id="canvas_dir" width="200" height="200"></canvas> </div></div> <!--row--> <div> <img style="position:absolute; top:980px; left:428px; width:200px; height:32px" src="./buttons/wndspd.jpg" alt="WIND SPEED"> <img style="position:absolute; top:980px; left:693px; width:200px; height:32px" src="./buttons/wnddir.jpg" alt="WIND DIRECTION"></div><div> <br /><br /><br /></div> <div class="unitsTable"> <div style="display:table-row"> <div id="temperature" class="cellRight"> <span id="lang_temperature">Temperature</span>: </div> <div style="display:table-cell"> <input id="rad_unitsTemp1" type="radio" name="rad_unitsTemp" value="C" checked onclick="gauges.setUnits(this);"><label id="lab_unitsTemp1" for="rad_unitsTemp1">&deg;C</label> </div> <div style="display:table-cell"> <input id="rad_unitsTemp2" type="radio" name="rad_unitsTemp" value="F" onclick="gauges.setUnits(this);"><label id="lab_unitsTemp2" for="rad_unitsTemp2">&deg;F</label> </div> </div> <div style="display:table-row"> <div id ="rainfall" class="cellRight"> <span id="lang_rainfall">Rainfall</span>: </div> <div style="display:table-cell"> <input id="rad_unitsRain1" type="radio" name="rad_unitsRain" value="mm" checked onclick="gauges.setUnits(this);"><label id="lab_unitsRain1" for="rad_unitsRain1">mm</label> </div> <div style="display:table-cell"> <input id="rad_unitsRain2" type="radio" name="rad_unitsRain" value="in" onclick="gauges.setUnits(this);"><label id="lab_unitsRain2" for="rad_unitsRain2">Inch</label> </div> </div> <div style="display:table-row"> <div id="pressure" class="cellRight"> <span id="lang_pressure">Pressure</span>: </div> <div style="display:table-cell"> <input id="rad_unitsPress1" type="radio" name="rad_unitsPress" value="hPa" checked onclick="gauges.setUnits(this);"><label id="lab_unitsPress1" for="rad_unitsPress1">hPa</label> </div> <div style="display:table-cell"> <input id="rad_unitsPress2" type="radio" name="rad_unitsPress" value="inHg" onclick="gauges.setUnits(this);"><label id="lab_unitsPress2" for="rad_unitsPress2">inHg</label> </div> <div style="display:table-cell"> <input id="rad_unitsPress3" type="radio" name="rad_unitsPress" value="mb" onclick="gauges.setUnits(this);"><label id="lab_unitsPress3" for="rad_unitsPress3">mb</label> </div> <div style="display:table-cell"> <input id="rad_unitsPress4" type="radio" name="rad_unitsPress" value="kPa" onclick="gauges.setUnits(this);"><label id="lab_unitsPress4" for="rad_unitsPress4">kPa</label> </div> </div> <div style="display:table-row"> <div id="wind" class="cellRight"> <span id="lang_windSpeed">Wind Speed</span>: </div> <div style="display:table-cell"> <input id="rad_unitsWind4" type="radio" name="rad_unitsWind" value="km/h" checked onclick="gauges.setUnits(this);"><label id="lab_unitsWind4" for="rad_unitsWind4">km/h</label> </div> <div style="display:table-cell"> <input id="rad_unitsWind3" type="radio" name="rad_unitsWind" value="m/s" onclick="gauges.setUnits(this);"><label id="lab_unitsWind3" for="rad_unitsWind3">m/s</label> </div> <div style="display:table-cell"> <input id="rad_unitsWind1" type="radio" name="rad_unitsWind" value="mph" onclick="gauges.setUnits(this);"><label id="lab_unitsWind1" for="rad_unitsWind1">mph</label> </div> <div style="display:table-cell"> <input id="rad_unitsWind2" type="radio" name="rad_unitsWind" value="kts" onclick="gauges.setUnits(this);"><label id="lab_unitsWind2" for="rad_unitsWind2">knots</label> </div> </div> <!-- Credits --> <div class="credits" style="padding: 0px 10px 10px 10px; text-align: left"> <hr> Scripts by Mark Crossley - version <span id="scriptVer"></span><br> Gauges drawn using Gerrit Grunwald\'s <a href="http://harmoniccode.blogspot.com" target="_blank">SteelSeries</a> <a href="https://github.com/HanSolo/SteelSeries-Canvas">JavaScript library</a> <span id="rgraph_attrib"><br>Wind Rose drawn using <a href="http://www.rgraph.net/">RGraph</a></span> <br> powered by <span id="programName"></span> v<span id="programVersion"></span> (b<span id="programBuild"></span>) </div><!-- Credits --> <!-- Included Scripts --> <!-- Google CDN hosted JQuery library --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <!-- or... --> <!-- Local JQuery library, do not use if your containing page already pulls in a copy of JQuery --> <!-- <script src="scripts/jquery-1.8.2.min.js"></script> --> <!-- Combined steelseries.js & tween.js --> <script src="'.$ssgDir.'scripts/steelseries_tween.min.js"></script> <!-- Once you have customised this scripts to your requirements you should minimise and concatenate them into a single file in the same order as below --> <script src="'.$ssgDir.'scripts/language.min.js"></script> <script src="'.$ssgDir.'scripts/gauges.js"></script> <!--Optional Wind Rose scripts --> <!--script src="'.$ssgDir.'scripts/windrose.js"></script> <script src="'.$ssgDir.'scripts/RGraph.common.core.min.js"></script> <script src="'.$ssgDir.'scripts/RGraph.radar.min.js"></script-->';return;}?>

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.0090.01216.75
8.3.50.0120.00822.79
8.3.40.0040.01118.64
8.3.30.0070.00719.07
8.3.20.0040.00420.28
8.3.10.0070.00023.71
8.3.00.0080.00017.63
8.2.180.0060.00916.75
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.01426.16
8.2.120.0040.00421.03
8.2.110.0000.00920.45
8.2.100.0090.00317.85
8.2.90.0040.00418.16
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0030.00518.05
8.2.50.0090.00018.07
8.2.40.0000.00818.03
8.2.30.0000.00718.07
8.2.20.0040.00417.81
8.2.10.0060.00318.15
8.2.00.0080.00017.82
8.1.280.0110.00325.92
8.1.270.0000.00823.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.10
8.1.230.0000.01220.83
8.1.220.0030.00617.74
8.1.210.0040.00418.87
8.1.200.0030.00617.23
8.1.190.0000.00817.25
8.1.180.0040.00419.01
8.1.170.0040.00418.50
8.1.160.0000.00722.04
8.1.150.0040.00418.78
8.1.140.0020.00517.23
8.1.130.0030.00317.79
8.1.120.0040.00417.37
8.1.110.0040.00417.23
8.1.100.0050.00317.25
8.1.90.0030.00317.43
8.1.80.0040.00417.32
8.1.70.0000.00717.32
8.1.60.0060.00317.37
8.1.50.0040.00417.48
8.1.40.0030.00517.41
8.1.30.0000.00817.62
8.1.20.0040.00417.62
8.1.10.0050.00217.55
8.1.00.0050.00317.33
8.0.300.0030.00320.09
8.0.290.0050.00216.75
8.0.280.0000.00718.47
8.0.270.0040.00417.32
8.0.260.0050.00317.20
8.0.250.0070.00016.98
8.0.240.0000.00816.99
8.0.230.0030.00317.00
8.0.220.0070.00016.96
8.0.210.0000.00716.85
8.0.200.0040.00417.02
8.0.190.0040.00417.00
8.0.180.0040.00416.85
8.0.170.0040.00416.87
8.0.160.0000.00716.93
8.0.150.0000.00816.84
8.0.140.0000.00716.92
8.0.130.0060.00313.40
8.0.120.0040.00416.78
8.0.110.0040.00416.81
8.0.100.0040.00416.92
8.0.90.0000.00816.88
8.0.80.0060.01216.86
8.0.70.0050.00316.88
8.0.60.0020.00516.93
8.0.50.0000.00816.74
8.0.30.0110.00817.06
8.0.20.0140.00817.40
8.0.10.0050.00316.88
8.0.00.0050.01316.79
7.4.330.0040.00415.00
7.4.320.0060.00016.49
7.4.300.0040.00416.48
7.4.290.0070.00016.56
7.4.280.0030.00616.52
7.4.270.0030.00316.61
7.4.260.0020.00516.38
7.4.250.0000.00716.53
7.4.240.0040.00416.46
7.4.230.0070.00016.63
7.4.220.0090.00916.57
7.4.210.0070.00716.63
7.4.200.0040.00416.46
7.4.160.0080.00816.41
7.4.150.0030.01417.40
7.4.140.0120.00717.86
7.4.130.0080.01216.87
7.4.120.0080.00916.74
7.4.110.0110.00616.27
7.4.100.0120.00616.56
7.4.90.0090.00916.43
7.4.80.0070.01119.39
7.4.70.0070.01116.59
7.4.60.0060.00916.46
7.4.50.0040.00416.64
7.4.40.0090.00616.81
7.4.30.0070.01416.60
7.4.00.0030.01314.89
7.3.330.0030.00313.21
7.3.320.0000.00513.17
7.3.310.0070.00016.45
7.3.300.0050.00216.21
7.3.290.0060.01516.39
7.3.280.0120.00716.36
7.3.270.0040.01317.40
7.3.260.0140.01016.57
7.3.240.0060.01216.47
7.3.230.0040.01416.39
7.3.210.0140.00316.46
7.3.200.0070.00719.39
7.3.190.0130.00316.41
7.3.180.0140.00016.29
7.3.170.0140.00616.53
7.3.160.0000.01516.39
7.2.330.0070.01016.63
7.2.320.0150.00616.24
7.2.310.0070.01016.65
7.2.300.0090.00916.50
7.2.290.0080.00816.70
7.2.60.0200.01116.64
7.2.00.0150.00818.85
7.1.200.0040.00715.82
7.1.100.0040.00718.17
7.1.70.0000.00916.58
7.1.60.0040.01119.40
7.1.50.0030.02016.85
7.1.00.0030.07722.36
7.0.200.0000.01016.80
7.0.140.0030.07722.18
7.0.110.0070.04719.95
7.0.100.0030.04319.98
7.0.90.0030.04319.85
7.0.80.0070.04319.89
7.0.70.0100.04719.96
7.0.60.0130.03320.00
7.0.50.0070.03320.08
7.0.40.0030.07319.66
7.0.30.0030.05019.74
7.0.20.0000.06319.68
7.0.10.0000.03719.70
7.0.00.0030.03319.87
5.6.280.0030.07321.06
5.6.260.0030.04720.65
5.6.250.0030.04020.56
5.6.240.0000.06720.71
5.6.230.0030.04020.65
5.6.220.0000.04320.67
5.6.210.0030.04020.39
5.6.200.0100.02720.57
5.6.190.0000.03720.56
5.6.180.0100.04720.59
5.6.170.0000.04720.58
5.6.160.0070.04020.66
5.6.150.0000.03720.86
5.6.140.0000.04320.54
5.6.130.0070.03720.81
5.6.120.0030.04020.68
5.6.110.0000.05320.63
5.6.100.0000.08320.53
5.6.90.0070.06320.59
5.6.80.0100.03720.02
5.6.70.0100.07319.98
5.6.60.0130.06019.98
5.6.50.0070.04720.08
5.6.40.0000.07719.97
5.6.30.0030.07020.01
5.6.20.0130.06320.04
5.6.10.0000.07320.06
5.6.00.0100.03719.94
5.5.380.0070.03317.63
5.5.370.0070.03017.58
5.5.360.0130.03017.52
5.5.350.0030.03317.41
5.5.340.0100.02718.17
5.5.330.0030.03318.10
5.5.320.0030.05018.01
5.5.310.0100.03317.89
5.5.300.0070.03717.85
5.5.290.0030.04717.77
5.5.280.0030.05018.09
5.5.270.0030.04017.76
5.5.260.0000.08018.09
5.5.250.0100.08717.66
5.5.240.0270.06017.54
5.5.230.0130.05717.50
5.5.220.0000.08317.47
5.5.210.0130.07317.51
5.5.200.0000.04017.46
5.5.190.0100.06017.45
5.5.180.0030.04317.34
5.5.160.0100.05017.12
5.5.150.0070.07717.07
5.5.140.0070.03717.51
5.5.130.0070.07317.20
5.5.120.0130.07017.47
5.5.110.0100.06317.44
5.5.100.0200.05717.39
5.5.90.0100.07317.11
5.5.80.0030.08017.02
5.5.70.0100.07017.10
5.5.60.0070.03717.25
5.5.50.0000.07017.11
5.5.40.0070.07317.34
5.5.30.0070.07717.22
5.5.20.0100.07317.08
5.5.10.0100.07317.13
5.5.00.0070.07317.39
5.4.450.0030.04019.28
5.4.440.0070.05019.35
5.4.430.0030.03319.44
5.4.420.0100.05719.30
5.4.410.0130.03319.22
5.4.400.0000.04318.93
5.4.390.0070.08019.18
5.4.380.0070.07019.12
5.4.370.0100.07719.16
5.4.360.0030.06319.03
5.4.350.0170.06318.96
5.4.340.0000.08019.01
5.4.320.0030.07319.12
5.4.310.0100.04019.12
5.4.300.0030.05319.25
5.4.290.0030.05718.95
5.4.280.0100.08018.95
5.4.270.0070.07319.16
5.4.260.0100.07019.11
5.4.250.0070.03718.92
5.4.240.0070.07019.24
5.4.230.0070.07719.00
5.4.220.0070.07719.07
5.4.210.0030.04318.93
5.4.200.0030.04318.94
5.4.190.0100.06319.00
5.4.180.0170.06319.07
5.4.170.0000.08319.10
5.4.160.0030.07319.16
5.4.150.0070.07019.07
5.4.140.0130.07016.49
5.4.130.0170.06016.56
5.4.120.0030.07716.25
5.4.110.0000.06716.29
5.4.100.0070.07716.29
5.4.90.0130.06316.48
5.4.80.0100.06716.51
5.4.70.0230.06016.48
5.4.60.0130.05016.21
5.4.50.0000.08016.24
5.4.40.0130.06316.53
5.4.30.0030.08016.37
5.4.20.0030.07716.35
5.4.10.0030.07716.41
5.4.00.0130.06715.63
5.3.290.0070.04014.67
5.3.280.0070.07014.61
5.3.270.0030.07714.48
5.3.260.0030.07714.39
5.3.250.0130.06714.51
5.3.240.0070.04314.62
5.3.230.0100.06714.66
5.3.220.0130.06714.63
5.3.210.0030.05714.61
5.3.200.0030.08014.36
5.3.190.0070.07314.59
5.3.180.0170.06314.45
5.3.170.0130.07014.50
5.3.160.0100.04314.41
5.3.150.0030.07314.43
5.3.140.0100.07714.58
5.3.130.0100.07714.49
5.3.120.0070.07714.63
5.3.110.0270.06314.49
5.3.100.0070.06713.95
5.3.90.0030.04313.98
5.3.80.0130.03314.03
5.3.70.0100.07013.90
5.3.60.0070.07014.08
5.3.50.0000.08313.89
5.3.40.0130.06313.81
5.3.30.0100.06713.86
5.3.20.0000.08013.48
5.3.10.0070.06713.76
5.3.00.0070.07313.58
5.2.170.0070.05011.87
5.2.160.0130.05711.87
5.2.150.0030.05311.87
5.2.140.0070.06311.87
5.2.130.0000.06311.87
5.2.120.0000.06711.87
5.2.110.0000.05011.87
5.2.100.0100.04711.87
5.2.90.0100.05311.87
5.2.80.0030.06711.87
5.2.70.0000.05311.87
5.2.60.0070.05711.87
5.2.50.0130.02311.87
5.2.40.0000.06011.87
5.2.30.0100.05011.87
5.2.20.0000.03311.87
5.2.10.0030.05711.87
5.2.00.0030.06311.87
5.1.60.0000.04711.87
5.1.50.0030.05311.87
5.1.40.0070.05311.87
5.1.30.0070.05011.87
5.1.20.0030.05711.87
5.1.10.0070.05011.87
5.1.00.0000.05711.87
5.0.50.0000.05011.87
5.0.40.0030.03711.87
5.0.30.0070.05711.87
5.0.20.0100.02011.87
5.0.10.0030.04311.87
5.0.00.0070.03711.87
4.4.90.0000.03711.87
4.4.80.0000.02011.87
4.4.70.0000.03311.87
4.4.60.0000.02711.87
4.4.50.0000.03711.87
4.4.40.0030.04311.87
4.4.30.0000.02711.87
4.4.20.0030.03711.87
4.4.10.0070.03011.87
4.4.00.0030.05011.87
4.3.110.0000.03711.87
4.3.100.0000.02711.87
4.3.90.0070.03011.87
4.3.80.0030.05011.87
4.3.70.0000.03711.87
4.3.60.0030.03311.87
4.3.50.0030.02711.87
4.3.40.0000.04711.87
4.3.30.0030.03011.87
4.3.20.0000.03711.87
4.3.10.0000.01711.87
4.3.00.0000.03711.87

preferences:
39.35 ms | 401 KiB | 5 Q