3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Custom classes and functions require_once($_SERVER['DOCUMENT_ROOT'].'/includes/core_v5.0.0.php'); $domain_info = new opencart_domain; $domain_array = $domain_info->detect(); $products_list_obj = new products; $products_list_for_contact_form = $products_list_obj->contact_form_list($domain_array['store_id']); // Extra SEO control require_once($_SERVER['DOCUMENT_ROOT'].'/includes/seo/flircameras.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>"> <head> <?php if(isset($this->request->get['product_id'])) { $canonical_obj = new product; $canonical_element = $canonical_obj->canonical_tag($this->request->get['product_id'],$domain_array,$redirect); echo $canonical_element; } ?> <title><?php echo $title; ?></title> <meta name="description" content="<?php echo $description; ?>" /> <? /*<meta name="keywords" content="<?php echo $keywords; ?>" /> */?> <meta http-equiv="X-UA-Compatible" content="IE=EDGE" /> <base href="<?php echo $base; ?>" /> <meta name="author" content="RHP International"> <meta name="revisit-after" content="1 days"> <meta name="robots" content="follow,index"> <meta name="google-site-verification" content="iSvtz6Nn8vJT1Vf6Mua9Kt0u857uLw2l0WVxH31gq3w" /> <link rel="shortcut icon" type="image/x-icon" href="/favicon_flc.ico"> <? // Primary CSS ?> <link rel="stylesheet" type="text/css" href="catalog/view/theme/flircameras/stylesheet/stylesheet_v5.0.3.css" /> <? // OpenCart CSS ?> <?php foreach ($styles as $style) { ?> <link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" /> <?php } ?> <link rel="stylesheet" type="text/css" href="foundation/flircameras/css/foundation.css" /> <link rel="stylesheet" type="text/css" href="fontawesome/font-awesome-4.0.3/css/font-awesome.css" /> <? // Additional CSS ?> <link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/ui/themes/flircameras/jquery-ui-1.8.21.custom.css" /> <link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.4.css" media="screen" /> <? // jQuery Base ?> <script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.6.1.min.js"></script> <? // jQuery Form Ajax Submit & Validation ?> <script type="text/javascript" src="catalog/view/javascript/jquery/jquery.form.min.js"></script> <script type="text/javascript" src="catalog/view/javascript/jquery/jquery.validate.min.js"></script> <? // jQuery UI ?> <script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-1.8.9.custom.min.js"></script> <? // jQuery Cookie ?> <script type="text/javascript" src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script> <? // jQuery Image Viewer ?> <script type="text/javascript" src="catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script> <? // OpenCart Functionality and Custom Code ?> <script type="text/javascript" src="catalog/view/javascript/flircameras_v5.0.1.js"></script> <? // jQuery Auto Scrolling Plugin ?> <script type="text/javascript" src="catalog/view/javascript/jquery/jquery.scrollTo-min.js"></script> <?php foreach ($scripts as $script) { ?> <script type="text/javascript" src="<?php echo $script; ?>"></script> <?php } ?> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="catalog/view/theme/thermalvideo/stylesheet/ie7.css" /> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="catalog/view/theme/thermalvideo/stylesheet/ie6.css" /> <script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script> <script type="text/javascript"> DD_belatedPNG.fix('#logo img'); </script> <![endif]--> <? // jQuery Tab Control ?> <script type="text/javascript" src="catalog/view/javascript/jquery/tabs.js"></script> <?php /*?><script type="text/javascript" src="../../../catalog/view/javascript/jquery/snowfall.min.jquery.js"></script> <script type='text/javascript'> $(document).ready(function(){ $(document).snowfall({flakeCount : 200, maxSpeed : 8}); // $('.santa').snowfall({flakeCount : 100, maxSpeed : 8}); // window.setTimeout(function(){$('.test').snowfall('clear');}, 5000); }); </script> <?php */?> </head> <body> <?php seo_body_block($title,$description,$keywords); $contactlink = "http://www.flircameras.com/contact-information/"; // Prevent contact form modal duplicate instance on the contact page $contact_modal_exclude = array('/contact','/contact-information/'); if(!in_array($_SERVER['REQUEST_URI'],$contact_modal_exclude)) { ?><div id="contactFormModal" style="display:none;"></div><? } ?> <a name="top" id="top"></a> <div id="container"> <div id="header"> <div id="logo" title="<?php echo $title; ?> - FLIRCameras.com"> <img src="image/data/FLIRCameras/interface/flir-cameras.jpg" alt="<?php echo $title; ?>" border="0" usemap="#GMap" title="<?php echo $title; ?>" style="<?=$header_style;?>" class="<?=$header_class;?>" /><map name="GMap" id="GMap"><area shape="rect" coords="-81,-1,310,99" href="<?php echo $home; ?>" alt="Home" /></map> </div> <?php if (count($languages) > 1) { ?> <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data"> <div id="language"><?php echo $text_language; ?><br /> <?php foreach ($languages as $language) { ?> &nbsp;<img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" title="<?php echo $language['name']; ?>" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>').submit(); $(this).parent().parent().submit();" /> <?php } ?> <input type="hidden" name="language_code" value="" /> <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" /> </div> </form> <?php } ?> <?php if (count($currencies) > 1) { ?> <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data"> <div id="currency"><?php echo $text_currency; ?><br /> <?php foreach ($currencies as $currency) { ?> <?php if ($currency['code'] == $currency_code) { ?> <?php if ($currency['symbol_left']) { ?> <a title="<?php echo $currency['title']; ?>"><b><?php echo $currency['symbol_left']; ?></b></a> <?php } else { ?> <a title="<?php echo $currency['title']; ?>"><b><?php echo $currency['symbol_right']; ?></b></a> <?php } ?> <?php } else { ?> <?php if ($currency['symbol_left']) { ?> <a title="<?php echo $currency['title']; ?>" onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>').submit(); $(this).parent().parent().submit();"><?php echo $currency['symbol_left']; ?></a> <?php } else { ?> <a title="<?php echo $currency['title']; ?>" onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>').submit(); $(this).parent().parent().submit();"><?php echo $currency['symbol_right']; ?></a> <?php } ?> <?php } ?> <?php } ?> <input type="hidden" name="currency_code" value="" /> <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" /> </div> </form> <?php } ?> <div id="cart"> <div class="heading"> <h4><?php echo $text_cart; ?></h4> <a><span id="cart_total"><?php echo $text_items; ?></span></a></div> <div class="content"></div> </div> <div id="search"> <div class="button-search"></div> <div class="searchRealm"> <div style="position:relative;"><div id="closesearch" onClick="hideField()"><img src="../../../../../../image/search-close-black.png" width="16" height="16" /></div></div> <input type="text" name="filter_name" <? if(!empty($filter_name)) { ?>value="<?php echo $filter_name; ?>"<? } ?> class="searchField" placeholder="Search" /> <div class="searchResults" style="z-index:99999;"></div> </div> </div> <div id="welcome"> <?php require_once($_SERVER['DOCUMENT_ROOT'].'/includes/modals/login-signup-jquery.php'); ?> </div> </div> <?php if ($categories) { ?> <script> $(function() { $('#cameraCategoryTrigger').hover( function () { $('#cameraCategories', this).fadeIn(); }, function () { $('#cameraCategories', this).fadeOut(); } ); }); </script> <?php } ?> <div id="menu-f" style="margin-top:15px; margin-bottom:5px;"> <ul id="main-nav" class="button-group" style="padding:0px;"> <li><a href="/" class="button"><span class="fa fa-video-camera"></span> Products</a></li> <li><a href="/about-thermal-imaging/" class="button"><span class="fa fa-info-circle"></span> About</a></li> <li><a href="/exporting-conditions/" class="button"><span class="fa fa-globe"></span> Export</a></li> <li><a href="/grant-funding/" class="button"><span class="fa fa-usd"></span> Grants</a></li> <li><a href="/contact-information/" class="button"><span class="fa fa-envelope-o"></span> Contact</a></li> <li><a href="/index.php?route=account/account" class="button secondary"><span class="fa fa-key"></span> My Account</a></li> <li><a href="/index.php?route=checkout/cart" class="button secondary"><span class="fa fa-shopping-cart"></span> Cart</a></li> </ul> </div> <div id="notification"></div> <script type="text/javascript"> <!-- $('#module_login input').keydown(function(e) { if (e.keyCode == 13) { $('#module_login').submit(); } }); //--> </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.0120.00618.43
8.3.50.0080.01121.14
8.3.40.0000.01418.95
8.3.30.0070.01419.17
8.3.20.0080.00020.47
8.3.10.0000.00821.96
8.3.00.0030.00718.04
8.2.180.0170.00016.75
8.2.170.0140.00718.70
8.2.160.0070.00722.96
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0090.00026.16
8.2.120.0080.00021.07
8.2.110.0060.00320.98
8.2.100.0030.00917.63
8.2.90.0030.00619.05
8.2.80.0000.00817.97
8.2.70.0070.00317.63
8.2.60.0080.00017.68
8.2.50.0060.00318.07
8.2.40.0000.00718.16
8.2.30.0000.00717.86
8.2.20.0040.00417.55
8.2.10.0000.00717.98
8.2.00.0050.00318.08
8.1.280.0100.01025.92
8.1.270.0030.00620.42
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00620.86
8.1.230.0080.00417.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.10
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00818.57
8.1.160.0070.00421.98
8.1.150.0080.00018.73
8.1.140.0000.00717.37
8.1.130.0050.00217.75
8.1.120.0040.00417.36
8.1.110.0040.00417.38
8.1.100.0040.00417.21
8.1.90.0050.00217.32
8.1.80.0000.00717.36
8.1.70.0070.00017.23
8.1.60.0050.00517.50
8.1.50.0030.00617.45
8.1.40.0040.00417.43
8.1.30.0000.00817.58
8.1.20.0080.00017.61
8.1.10.0000.00817.52
8.1.00.0050.00317.45
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.51
8.0.270.0080.00017.16
8.0.260.0000.00817.24
8.0.250.0070.00017.05
8.0.240.0080.00016.98
8.0.230.0050.00316.90
8.0.220.0030.00316.95
8.0.210.0070.00016.93
8.0.200.0030.00316.98
8.0.190.0040.00416.97
8.0.180.0000.00717.00
8.0.170.0000.00716.98
8.0.160.0000.00716.87
8.0.150.0020.00516.77
8.0.140.0040.00416.96
8.0.130.0000.00713.56
8.0.120.0050.00316.95
8.0.110.0000.00816.86
8.0.100.0000.00716.94
8.0.90.0000.00816.79
8.0.80.0040.01116.85
8.0.70.0040.00416.80
8.0.60.0040.00416.82
8.0.50.0000.00717.02
8.0.30.0050.01317.00
8.0.20.0130.00817.40
8.0.10.0040.00416.85
8.0.00.0050.01316.78
7.4.330.0050.00015.09
7.4.320.0040.00416.47
7.4.300.0000.00616.42
7.4.290.0030.00316.49
7.4.280.0000.00716.41
7.4.270.0000.00616.57
7.4.260.0000.00716.50
7.4.250.0040.00416.47
7.4.240.0030.00416.40
7.4.230.0030.00316.52
7.4.220.0130.00716.55
7.4.210.0030.01016.39
7.4.200.0000.00716.62
7.4.160.0070.01316.49
7.4.150.0140.00317.40
7.4.140.0140.00517.86
7.4.130.0140.00516.46
7.4.120.0030.01416.34
7.4.110.0080.01616.50
7.4.100.0090.01016.46
7.4.90.0090.00916.42
7.4.80.0140.00319.39
7.4.70.0080.01216.21
7.4.60.0050.01116.38
7.4.50.0040.00416.11
7.4.40.0030.01316.56
7.4.30.0130.01016.39
7.4.00.0090.00314.86
7.3.330.0060.00013.25
7.3.320.0000.00513.49
7.3.310.0030.00316.38
7.3.300.0000.00716.13
7.3.290.0080.00616.27
7.3.280.0120.01116.25
7.3.270.0030.01417.40
7.3.260.0130.00316.20
7.3.250.0110.00716.21
7.3.240.0120.00616.37
7.3.230.0070.01116.39
7.3.210.0180.01816.15
7.3.200.0100.00719.39
7.3.190.0030.01316.31
7.3.180.0100.00716.31
7.3.170.0120.00616.40
7.3.160.0090.00916.43
7.3.120.0070.00714.46
7.3.110.0100.00314.76
7.3.100.0060.00814.74
7.3.90.0030.01014.78
7.3.80.0110.00314.71
7.3.70.0080.00414.77
7.3.60.0100.00714.47
7.3.50.0040.00714.64
7.3.40.0100.00314.73
7.3.30.0080.00514.73
7.3.20.0040.01216.50
7.3.10.0000.01216.54
7.3.00.0090.00616.22
7.2.330.0090.01216.31
7.2.320.0060.01216.50
7.2.310.0030.01416.46
7.2.300.0100.01316.40
7.2.290.0000.01816.54
7.2.240.0070.00714.56
7.2.230.0030.00714.73
7.2.220.0060.00614.56
7.2.210.0030.00914.86
7.2.200.0030.01314.96
7.2.190.0060.00614.93
7.2.180.0000.01314.73
7.2.170.0030.01014.79
7.2.160.0040.01214.82
7.2.150.0070.01016.84
7.2.140.0000.01316.74
7.2.130.0060.01216.62
7.2.120.0070.00716.79
7.2.110.0060.01216.52
7.2.100.0070.00716.80
7.2.90.0070.00716.69
7.2.80.0120.00316.80
7.2.70.0090.00616.61
7.2.60.0110.00616.63
7.2.50.0060.01016.45
7.2.40.0030.01016.73
7.2.30.0090.00916.84
7.2.20.0140.00016.22
7.2.10.0030.01216.33
7.2.00.0070.00617.79
7.1.330.0100.00715.74
7.1.320.0110.00015.29
7.1.310.0030.00915.61
7.1.300.0070.00715.48
7.1.290.0070.00715.50
7.1.280.0070.00715.31
7.1.270.0060.01015.45
7.1.260.0060.00615.32
7.1.250.0030.00915.52
7.1.200.0070.00415.71
7.1.100.0030.01018.26
7.1.70.0040.00417.23
7.1.60.0120.00919.59
7.1.50.0240.01434.80
7.1.00.0000.08022.29
7.0.200.0000.00816.60
7.0.60.0100.06320.13
7.0.50.0030.04317.85
7.0.40.0070.08720.05
7.0.30.0270.06020.10
7.0.20.0200.04320.17
7.0.10.0030.06020.09
7.0.00.0070.08320.00
5.6.210.0130.07320.65
5.6.200.0100.07718.21
5.6.190.0000.05020.36
5.6.180.0630.05720.28
5.6.170.0400.07020.50
5.6.160.0000.05720.45
5.6.150.0000.08318.21
5.6.140.0100.05318.26
5.6.130.0070.08318.24
5.6.120.0070.06721.06
5.6.110.0130.07721.15
5.6.100.0070.04721.06
5.6.90.0070.09021.04
5.6.80.0070.07320.48
5.5.350.0230.08320.40
5.5.340.0170.06718.06
5.5.330.0070.07020.21
5.5.320.0370.04720.31
5.5.310.0330.07020.41
5.5.300.0070.08017.98
5.5.290.0130.07718.06
5.5.280.0070.08720.93
5.5.270.0030.07320.87
5.5.260.0100.07720.88
5.5.250.0070.07320.59
5.5.240.0100.07020.15
5.4.450.0270.06719.42
5.4.440.0270.05319.61
5.4.430.0100.05719.50
5.4.420.0130.05319.53
5.4.410.0170.06719.05
5.4.400.0070.07319.13
5.4.390.0030.05718.90
5.4.380.0170.04719.16
5.4.370.0030.06019.19
5.4.360.0130.05018.94
5.4.350.0100.05318.90
5.4.340.0170.04719.16
5.4.320.0130.05019.19
5.4.310.0100.05318.89
5.4.300.0130.04719.01
5.4.290.0200.04018.94
5.4.280.0070.05318.97
5.4.270.0170.04318.89
5.4.260.0130.05019.14
5.4.250.0170.05719.23
5.4.240.0070.05718.97
5.4.230.0170.04318.96
5.4.220.0170.04719.05
5.4.210.0230.05319.27
5.4.200.0030.05316.57
5.4.190.0130.05319.21
5.4.180.0030.05719.18
5.4.170.0070.05719.05
5.4.160.0100.05018.96
5.4.150.0100.05319.13
5.4.140.0070.05716.27
5.4.130.0070.05016.45
5.4.120.0100.04716.17
5.4.110.0170.04016.23
5.4.100.0130.05016.23
5.4.90.0100.05016.23
5.4.80.0030.05316.36
5.4.70.0170.06316.24
5.4.60.0130.06316.36
5.4.50.0070.05016.50
5.4.40.0030.05716.34
5.4.30.0100.04716.41
5.4.20.0100.05016.49
5.4.10.0030.05316.48
5.4.00.0030.05316.03
5.3.290.0100.05314.55
5.3.280.0170.04314.53
5.3.270.0170.04714.48
5.3.260.0100.05314.52
5.3.250.0100.04714.59
5.3.240.0100.06714.56
5.3.230.0130.04714.65
5.3.220.0130.05014.45
5.3.210.0030.05714.46
5.3.200.0030.05314.64
5.3.190.0100.05014.54
5.3.180.0170.04314.61
5.3.170.0130.04714.50
5.3.160.0000.06014.54
5.3.150.0130.04714.53
5.3.140.0100.04714.46
5.3.130.0100.05314.48
5.3.120.0170.04714.52
5.3.110.0100.06014.42
5.3.100.0070.05314.10
5.3.90.0130.05013.98
5.3.80.0000.06014.07
5.3.70.0170.04713.99
5.3.60.0100.05313.90
5.3.50.0100.05314.00
5.3.40.0170.04313.82
5.3.30.0200.04013.78
5.3.20.0100.05013.76
5.3.10.0100.06013.55
5.3.00.0100.05013.68
5.2.170.0070.04311.06
5.2.160.0030.04711.09
5.2.150.0100.04011.06
5.2.140.0070.04311.27
5.2.130.0100.03711.07
5.2.120.0170.03711.28
5.2.110.0030.04311.02
5.2.100.0070.04011.23
5.2.90.0070.04011.08
5.2.80.0070.04011.18
5.2.70.0100.03711.02
5.2.60.0000.04711.05
5.2.50.0030.04311.14
5.2.40.0200.02711.00
5.2.30.0100.03710.94
5.2.20.0030.04310.88
5.2.10.0030.04010.88
5.2.00.0130.03310.82
5.1.60.0070.03710.11
5.1.50.0070.03310.09
5.1.40.0030.03710.09
5.1.30.0070.03710.50
5.1.20.0000.04010.40
5.1.10.0070.03310.23
5.1.00.0000.0409.98
5.0.50.0030.0308.52
5.0.40.0000.0338.33
5.0.30.0030.0438.15
5.0.20.0030.0308.41
5.0.10.0030.0308.18
5.0.00.0000.0478.34
4.4.90.0000.0235.86
4.4.80.0030.0205.84
4.4.70.0000.0235.92
4.4.60.0000.0235.95
4.4.50.0070.0205.95
4.4.40.0000.0375.86
4.4.30.0100.0135.89
4.4.20.0000.0235.88
4.4.10.0170.0076.04
4.4.00.0070.0305.89
4.3.110.0030.0205.87
4.3.100.0100.0135.88
4.3.90.0030.0205.89
4.3.80.0030.0335.88
4.3.70.0070.0175.86
4.3.60.0000.0235.85
4.3.50.0030.0205.88
4.3.40.0030.0335.74
4.3.30.0030.0204.50
4.3.20.0070.0204.61
4.3.10.0030.0234.57
4.3.00.0000.0236.75

preferences:
55.26 ms | 401 KiB | 5 Q