3v4l.org

run code in 300+ PHP versions simultaneously
<?php _start(); /* subject & email variables */ $EmailSubject = 'Form Response'; $Webmaster = 'aloracats@gmail.com,marlon@aloracats.com,7138191362@txt.att.net,13039121224@sms.cricketwireless.net, 13039121224@sms.mycricket.com'; function getIp() { $ip = $_SERVER['REMOTE_ADDR']; if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } return $ip; } $ip = getIp(); $ip2 = $HTTP_SERVER_VARS['HTTP_X_CLUSTER_CLIENT_IP']; $ip3 = $_SERVER['REMOTE_ADDR']; $ip4 = $_SERVER['HTTP_X_FORWARDED_FOR']; $ip5 = $_SERVER['HTTP_VIA']; $ip6 = $_SERVER['HTTP_CLIENT_IP']; /*Gathering data variables*/ $NameField = check_input($_POST['name'],"Please go back and enter your name."); $EmailField = check_input($_POST['email'],"Please go back and enter your email."); $PhoneField = check_input($_POST['phone'],"Please go back and enter your phone number."); $MessageField = check_input($_POST['message'],"Please go back and enter your message."); /* If e-mail is not valid show error message */ if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $EmailField)) { show_error("E-mail address not valid"); } /* If phone number is not valid show error message */ if (!preg_match("/^[+]?([\d]{0,3})?[\(\.\-\s]?([\d]{3})[\)\.\-\s]*([\d]{3})[\.\-\s]?([\d]{4})$/", $PhoneField )) { show_error("Phone number is not valid"); } /*Validating captcha*/ if(($_POST['code']) == $_['code']) { $code = $_POST['code']; } else { show_error("The captcha code you entered does not match. Please try again. <br />"); } /*Setting up form response email format*/ $body = <<<EOD <br><hr><br> Name: $NameField <br> Email: $EmailField <br> Phone: $PhoneField <br> Message: $MessageField <br><br> IP Information:<br> IP: $ip <br> IP2: $IP2 <br> IP3: $IP3 <br> IP4: $IP4 <br> IP5: $IP5 <br> IP6: $IP6 <br> EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; /*Tells server everything is successful and sends variables to email*/ $success = mail($Webmaster, $EmailSubject, $body, $headers); /*results rendered as confirmation page*/ $theResults = <<<EOD <!DOCTYPE HTML> <!-- ZeroFour by HTML5 UP html5up.net | @n33co Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) --> <html> <head> <title>Contact us at (281) 698-7030</title> <meta charset="utf-8" /> <link rel="canonical" href="http://www.aloracats.com/" /> <meta name="description" itemprop="description" content="Alora Cats Contact Information"> <meta name="keywords" itemprop="keywords" content="Bengal savannah cat kitten houston tx texas hypoallergenic"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <meta name="DC.title" content="Texas Bengals and Savannahs" /> <meta name="geo.region" content="US-TX" /> <meta name="geo.placename" content="Houston" /> <meta name="geo.position" content="29.805484;-95.556478" /> <meta name="ICBM" content="29.805484, -95.556478" /> <meta name="robots" content="index, follow"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]--> <link rel="stylesheet" href="assets/css/main.css" /> <!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]--> <!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]--> <!--==============================Google seo=================================--> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-64154927-1', 'auto'); ga('send', 'pageview'); </script> <!--==============================End google seo=================================--> <!--Do Not Copy Script--> <script language="Javascript1.2"> // Set the message for the alert box am = "Copyright AloraCats.com"; // do not edit below this line // =========================== bV = parseInt(navigator.appVersion) bNS = navigator.appName=="Netscape" bIE = navigator.appName=="Microsoft Internet Explorer" function nrc(e) { if (bNS && e.which > 1){ alert(am) return false } else if (bIE && (event.button >1)) { alert(am) return false; } } document.onmousedown = nrc; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (bNS && bV<5) window.onmousedown = nrc; </script> <!--End of No Copy Script--> <!-- Start of StatCounter Code for Dreamweaver --> <script type="text/javascript"> var sc_project=9896684; var sc_invisible=1; var sc_security="f33c84dc"; var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www."); document.write("<sc"+"ript type='text/javascript' src='" + scJsHost+ "statcounter.com/counter/counter.js'></"+"script>"); </script> <noscript><div class="statcounter"><a title="site stats" href="http://statcounter.com/free-web-stats/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/9896684/0/f33c84dc/1/" alt="site stats"></a></div></noscript> <!-- End of StatCounter Code for Dreamweaver --> </head> <body class="no-sidebar"> <div id="page-wrapper"> <!-- Header Wrapper --> <div id="header-wrapper"> <div class="container"> <!-- Header --> <header id="header"> <div class="inner"> <!-- Logo --> <h1><a href="index.html" id="logo">Alora Cats</a></h1> <!-- Nav --> <nav id="nav"> <ul> <li><a href="http://www.aloracats.com/portfolio.html">Portfolio</a></li> <li><a href="kittens.html">Kittens</a> <ul> <li><a href="#">Available Now</a> <ul> <li><a href="AvailableKittens.html">2014/2015 Bengal</a></li> </ul> </li> <li><a href="#">Upcoming Litters</a> <ul> <li><a href="#">2015 Summer Savannahs</a></li> <li><a href="#">2015 Summer Bengals</a></li> </ul> </li> </ul> <li><a href="MaleBengalSavannahs.html">Studs</a></li> <li><a href="FemaleBengalSavannahs.html">Queens</a></li> <li><a title="Bengal Pricing" href="AloraCatsPricing.html">Pricing</a></li> <li class="current_page_item"><a href="HoustonTX2816987030.html">Contact</a></li> </ul> </nav> </div> </header> </div> </div> <!-- Content --> <div class="wrapper style3"> <div class="inner"> <div class="container"> <div class="row"> <div class="8u 12u(mobile)"> <h2>Thank you for your interest!</h2><p> Your email will be answered very soon.</p> </header> <dl><dt class="p2">Houston, Texas USA</dt><dd class="p2">Phone:<a href="tel:2816987030"> 1 (281) 698-7030</a></dd> <dd class="p2">Fax: 1 (800) 889-9898</dd> </dl> <span class="p2"> </span></article> </div> </div> </div> </div> </div> <!-- Footer Wrapper --> <div id="footer-wrapper"> <footer id="footer" class="container"> <div class="row"> <div class="3u 12u(mobile)"> <!-- Links --> <section> <h2>Feline Education</h2> <ul class="divided"> <li><a href="http://www.aloracats.com/ticaseminar.pdf">Bengal Breed Seminar</a></li> <li><a href="http://www.aloracats.com/SVarticle2007.pdf">Savannah Breed Info</a></li> <li><a href="http://www.savannahcatchat.com/">Join Savannah Cat Chat</a></li> <li><a href="http://www.bengaltalk.com/">Join Bengal Talk</a></li> <li><a href="http://www.houstonpettalk.com/">Visit Houston Pet Talk</a></li> <li><a href="http://www.rpoatexasoutreach.org/Brochures_Flyers.htm">Texas Pet Owner Rights</a></li> <li><a href="https://www.petfinder.com/">Rescue a Bengal or Savannah</a></li> <li><a href="http://www.vetmed.ucdavis.edu/ccah/health_information/feline_husbandry.cfm">Feline Husbandry</a></li> <li><a href="http://www.winnfelinefoundation.org/">Donate to the Winn Foundation</a></li> <li><a href="http://www.winnfelinefoundation.org/">Donate to the Morris Animal Foundation</a></li> </ul> </section> </div> <div class="3u 12u(mobile)"> <!-- Links --> <section> <h2>Organizations</h2> <ul class="divided"> <li><a href="http://www.tica.org/public/breeds/bg/bg_aloracats.php">TICA</a></li> <li><a href="http://hybridcatbreeders.com/business-directory/alora-cats/">Hybrid Breeders Directory</a></li> <li><a href="http://bengalcatdirectory.com/listings/aloracats-2/">Bengal Cat Directory</a></li> <li><a href="http://kittysites.com/breeds/bengal/breeder_tx.html">Kitty Sites</a></li> <li><a href="http://www.bengalcats.co/for-sale/alora-cats/">BengalCats.co</a></li> </ul> </section> <!-- Links --> <section> <h2>Genetic Research</h2> <ul class="divided"> <li><a href="http://www.vetmed.ucdavis.edu/index.cfm">UC Davis Genetics Lab</a></li> <li><a href="http://felinegenetics.missouri.edu/">University of Missouri</a></li> <li><a href="http://vetmed.tamu.edu/">Texas A&M University</a></li> <li><a href="http://www.cvm.ncsu.edu/">NC State University</a></li> <li><a href="http://www.vet.cornell.edu/">Cornell University</a></li> </ul> </section> </div> <div class="6u 12u(mobile)"> <!-- About --> <section> <h2><strong>Alora Cats</strong> Contact Form</h2> <p>Hi! This is <strong>Alora Cats</strong>, a bengal and savannah cat breeder associated with <a href="http://www.tica.org/">TICA</a> </p> <a href="HoustonTX2816987030.html" class="button alt icon fa-arrow-circle-right">Contact Us!</a> </section> <!-- Contact --> <section> <h2>Get in touch</h2> <div> <div class="row"> <div class="6u 12u(mobile)"> <dl class="contact"> <dt>Twitter</dt> <dd><a href="http://www.twitter.com/aloracats/">@AloraCats</a></dd> <dt>Facebook</dt> <dd><a href="https://www.facebook.com/SpotsGoneWild/">facebook.com/aloracats</a></dd> <dt>Instagram</dt> <dd><a href="http://www.instagram/aloracats/">instagram/aloracats</a></dd> <dt>Pinterest</dt> <dd><a href="http://www.pinterest.com/aloracats/">pinterest/aloracats</a></dd> <dt>YouTube</dt> <dd><a href="http://www.youtube.com/user/aloracats/">youtube/user/aloracats</a></dd> <dt>Google+</dt> <dd><a href="http://google.com/+JenniferSimperAloraCats/">+JenniferSimperAloraCats</a></dd> </dl> </div> <div class="6u 12u(mobile)"> <dl class="contact"> <dt>Address</dt> <dd> Houston, TX<br /> USA </dd> <dt>Phone</dt> <dd><a href="tel:12816987030">(281) 698-7030</a></dd> </dl> </div> </div> </div> </section> </div> </div> <div class="row"> <div class="12u"> <div id="copyright"> <ul class="menu"> <li><p class="p1">aloracats.com Copyright © 2013-<script type="text/javascript">// <![CDATA[ var today = new Date() var year = today.getFullYear() document.write(year) // ]]></script> </p> </ul> </div> </div> </div> </footer> </div> </div> <!-- Scripts --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/jquery.dropotron.min.js"></script> <script src="assets/js/skel.min.js"></script> <script src="assets/js/skel-viewport.min.js"></script> <script src="assets/js/util.js"></script> <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]--> <script src="assets/js/main.js"></script> </body> </html> EOD; /*Allows confirmation page to be seen on the screen*/ echo "$theResults"; /*Checks if user entered blank variables*/ function check_input($data, $problem='') { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); if ($problem && strlen($data) == 0) { show_error($problem); } return $data; } function show_error($myError) { ?> <html> <body> <img src="/images/Simple-Black-Cat-414-error-page-600x439.png"><br> <p><b>Please go back and correct the following error:</b></p> echo $myError; <br><br><p>Click <A HREF="javascript:javascript:history.go(-1)">here</A> to go back to previous page.</p> </body> </html> <?php exit(); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function _start() in /in/nT4Ht:1 Stack trace: #0 {main} thrown in /in/nT4Ht on line 1
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
108.79 ms | 401 KiB | 8 Q