run code in 150+ php & hhvm versions
Bugs & Features
<?php require_once('config.php'); //Page Title $pagetitle='Domain Services &#64; '.$sitename; // since its the main index page so page title is equal to website name defined in config.php //active menu item $active="domain"; /* availabe options: home, hosting, domain, servers, support, and contacts */ /* You can also use the following variables to set meta description and keywords! $description=' Whatever you want'; $metakeywords'keyword1,2,2 etc'; If above variables are not specified, the page will have default values specified in config.php */ //domain pricing $c=$_GET['c']; if($c=='usd'){ $wordlist = array("$", " USD"); $sign='$'; $k=' USD'; $com=$sign.$com.$k; $net=$sign.$net.$k; $biz=$sign.$biz.$k; $info=$sign.$info.$k; $us=$sign.$us.$k; $couk=$sign.$couk.$k; $org=$sign.$org.$k; $name=$sign.$name.$k; $cc=$sign.$cc.$k; $tv=$sign.$tv.$k; $in=$sign.$in.$k; $asia=$sign.$asia.$k; $eu=$sign.$eu.$k; $orguk=$sign.$orguk.$k; $meuk=$sign.$meuk.$k; $eucom=$sign.$eucom.$k; $ca=$sign.$ca.$k; $ws=$sign.$ws.$k; $me=$sign.$me.$k; $bz=$sign.$bz.$k; $tel=$sign.$tel.$k; $mobi=$sign.$mobi.$k; $cn=$sign.$cn.$k; $co=$sign.$co.$k; $de=$sign.$de.$k; } elseif($c=='gbp'){ $wordlist = array("£", " GBP"); $sign='£'; $k=' GBP'; $com=$sign.$com.$k; $net=$sign.$net.$k; $biz=$sign.$biz.$k; $info=$sign.$info.$k; $us=$sign.$us.$k; $couk=$sign.$couk.$k; $org=$sign.$org.$k; $name=$sign.$name.$k; $cc=$sign.$cc.$k; $tv=$sign.$tv.$k; $in=$sign.$in.$k; $asia=$sign.$asia.$k; $eu=$sign.$eu.$k; $orguk=$sign.$orguk.$k; $meuk=$sign.$meuk.$k; $eucom=$sign.$eucom.$k; $ca=$sign.$ca.$k; $ws=$sign.$ws.$k; $me=$sign.$me.$k; $bz=$sign.$bz.$k; $tel=$sign.$tel.$k; $mobi=$sign.$mobi.$k; $cn=$sign.$cn.$k; $co=$sign.$co.$k; $de=$sign.$de.$k; } else { $wordlist = array("Rs. ", " PKR"); $sign='Rs. '; $k=' PKR'; $com=$sign.$com.$k; $net=$sign.$net.$k; $biz=$sign.$biz.$k; $info=$sign.$info.$k; $us=$sign.$us.$k; $couk=$sign.$couk.$k; $org=$sign.$org.$k; $name=$sign.$name.$k; $cc=$sign.$cc.$k; $tv=$sign.$tv.$k; $in=$sign.$in.$k; $asia=$sign.$asia.$k; $eu=$sign.$eu.$k; $orguk=$sign.$orguk.$k; $meuk=$sign.$meuk.$k; $eucom=$sign.$eucom.$k; $ca=$sign.$ca.$k; $ws=$sign.$ws.$k; $me=$sign.$me.$k; $bz=$sign.$bz.$k; $tel=$sign.$tel.$k; $mobi=$sign.$mobi.$k; $cn=$sign.$cn.$k; $co=$sign.$co.$k; $de=$sign.$de.$k; } foreach ($wordlist as &$word) { $word = '/\b' . preg_quote($word, '/') . '\b/'; } function getprice($price, $x){ global $wordlist; $price = preg_replace($wordlist, '', $price); $price = $price*$x; echo $price; } require_once('header.php'); ?> <!-- content --> <section id="content"><div class="ic">Hosting Brunch</div> <div class="container"> <div class="inside bot-indent"> <div id="slogan"> <div class="inside"> <h2><span>DOMAIn </span>Hosting</h2> <p>We provide reliable and cheap domain hosting our domain control panel contains advance features for free such as DNS management , domain forwarding and many more.</div> </div> <h2>&nbsp;</h2> <h2>Domains</h2> <?=$msg1?> <div class="box extra"> <div class="border-right"> <div class="border-bot"> <div class="border-left"> <div class="left-top-corner1"> <div class="right-top-corner1"> <div class="right-bot-corner"> <div class="left-bot-corner"> <div class="inner"> <div class="left-indent line-ver1"> <div class="line-ver2"> <div class="line-ver3"> <div class="wrap line-ver4"> <article class="col-1 indent"> <h4>Domains</h4> <ul class="info-list1"> <li>com</li> <li>net</li> <li>biz</li> <li>info</li> <li>us</li> <li>co.uk</li> <li>org</li> <li>name</li> <li>cc</li> <li>tv</li> <li>in</li> <li>asia</li> <li>eu</li> <li>org.uk</li> <li>me.uk</li> <li>eu.com</li> <li>ca</li> <li>ws</li> <li>me</li> <li>bz</li> <li>tel</li> <li>mobi</li> <li>cn</li> <li>co</li> <li>de</li> <li></li> </ul> </article> <article class="col-2 indent"> <h4 class="aligncenter">Per Year</h4> <ul class="info-list1 alt"> <li><?=$com?></li> <li><?=$net?></li> <li><?=$biz?></li> <li><?=$info?></li> <li><?=$us?></li> <li><?=$couk?></li> <li><?=$org?></li> <li><?=$name?></li> <li><?=$cc?></li> <li><?=$tv?></li> <li><?=$in?></li> <li><?=$asia?></li> <li><?=$eu?></li> <li><?=$orguk?></li> <li><?=$meuk?></li> <li><?=$eucom?></li> <li><?=$ca?></li> <li><?=$ws?></li> <li><?=$me?></li> <li><?=$bz?></li> <li><?=$tel?></li> <li><?=$mobi?></li> <li><?=$cn?></li> <li><?=$co?></li> <li><?=$de?></li> <li></li> </ul> <div class="aligncenter"><a href="http://hostingbrunch.com/support/order.php?step=2&product=5&domain=1" target="_new" class="link3"><span><span>Order Domain</span></span></a></div> </article> <article class="col-3 indent"> <h4 class="aligncenter">2 Year</h4> <ul class="info-list1 alt"> <li>Rs. 2200</li> <li>Rs. 2200</li> <li>Rs. 2200</li> <li>Rs. 2200</li> <li>Rs. 1400</li> <li>Rs. 2800</li> <li>Rs. 2000</li> <li>Rs. 2000</li> <li>Rs. 4000</li> <li>Rs. 6400</li> <li>Rs. 2200</li> <li>Rs. 3200</li> <li>Rs. 1300</li> <li>Rs. 2800</li> <li>Rs. 2800</li> <li>Rs. 4500</li> <li>Rs. 2800</li> <li>Rs. 1740</li> <li>Rs. 4760</li> <li>Rs. 4400</li> <li>Rs. 2600</li> <li>Rs. 3200</li> <li>Rs. 2600</li> <li>Rs. 4600</li> <li>Rs. 2000</li> <li></li> </ul> <div class="aligncenter"><a href="http://hostingbrunch.com/support/order.php?step=2&product=5&domain=1" target="_new" class="link3"><span><span>Order Domain</span></span></a> </div> </article> <article class="col-4 indent"> <h4 class="aligncenter">3 Year</h4> <ul class="info-list1 alt"> <li>Rs. 3300</li> <li>Rs. 3300</li> <li>Rs. 3300</li> <li>Rs. 3300</li> <li>Rs. 2100</li> <li>Rs. 4200</li> <li>Rs. 3000</li> <li>Rs. 3000</li> <li>Rs. 6000</li> <li>Rs. 9600</li> <li>Rs. 3300</li> <li>Rs. 4800</li> <li>Rs. 2250</li> <li>Rs. 4200</li> <li>Rs. 4200</li> <li>Rs. 6750</li> <li>Rs. 4200</li> <li>Rs. 2610</li> <li>Rs. 7140</li> <li>Rs. 6600</li> <li>Rs. 3900</li> <li>Rs. 5550</li> <li>Rs. 3900</li> <li>Rs. 6900</li> <li>Rs. 3000</li> <li></li> </ul> <div class="aligncenter"><a href="http://hostingbrunch.com/support/order.php?step=2&product=5&domain=1" target="_new" class="link3"><span><span>Order Domain </span></span></a></div> </article> <article class="col-5 indent"> <h4 class="aligncenter">Transfer</h4> <ul class="info-list1 alt"> <li>Rs. 1100</li> <li>Rs. 1100</li> <li>Rs. 1100</li> <li>Rs. 1100</li> <li>Rs. 700</li> <li>Rs. 1400</li> <li>Rs. 1000</li> <li>Rs. 1000</li> <li>Rs. 2000</li> <li>Rs. 3200</li> <li>Rs. 1100</li> <li>Rs. 1600</li> <li>Rs. 750</li> <li>Rs. 1400</li> <li>Rs. 1400</li> <li>Rs. 2250</li> <li>Rs. 1400</li> <li>Rs. 870</li> <li>Rs. 2380</li> <li>Rs. 2200</li> <li>Rs. 1300</li> <li>Rs. 1850</li> <li>Rs. 1300</li> <li>Rs. 2300</li> <li>Rs. 1000</li> <li></li> </ul> <div class="aligncenter"><a href="http://hostingbrunch.com/support/order.php?step=2&product=5&domain=1" target="_new" class="link3"><span><span>Transfer</span></span></a> </div> </article> <div class="clear"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <p>&nbsp;</p> &nbsp;&nbsp;&nbsp;&nbsp; <a href="hosting.php"> Domain is free for lifetime with our hosting services</a> </div> </div> </section> </div> <?php require_once('footer.php'); ?>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: require_once(config.php): failed to open stream: No such file or directory in /in/Lma8m on line 2 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/Lma8m on line 2
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: File not found: config.php in /in/Lma8m on line 2
Process exited with code 255.