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 ?> <? // 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 ?> <? // jQuery Base ?> <? // jQuery Form Ajax Submit & Validation ?> <?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>
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Parse error: Unclosed '{' on line 96 in /in/n9psu on line 206
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Parse error: Unclosed '{' on line 96 in /in/n9psu on line 206
Process exited with code 255.
Output for 8.0.13
Warning: require_once(/includes/core_v5.0.0.php): Failed to open stream: No such file or directory in /in/n9psu on line 4 Fatal error: Uncaught Error: Failed opening required '/includes/core_v5.0.0.php' (include_path='.:') in /in/n9psu:4 Stack trace: #0 {main} thrown in /in/n9psu on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0, 7.3.32 - 7.3.33, 7.4.33
Warning: require_once(/includes/core_v5.0.0.php): failed to open stream: No such file or directory in /in/n9psu on line 4 Fatal error: require_once(): Failed opening required '/includes/core_v5.0.0.php' (include_path='.:') in /in/n9psu on line 4
Process exited with code 255.
Output for 7.1.26 - 7.1.33, 7.2.17 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Parse error: syntax error, unexpected end of file in /in/n9psu on line 206
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected $end in /in/n9psu on line 206
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected $ in /in/n9psu on line 206
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/n9psu on line 206
Process exited with code 255.

preferences:
255.23 ms | 401 KiB | 340 Q