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(); } ?>

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.0140.00418.56
8.3.50.0160.00621.09
8.3.40.0070.01018.83
8.3.30.0070.01118.67
8.3.20.0090.00020.28
8.3.10.0050.00323.71
8.3.00.0000.00919.68
8.2.180.0140.00716.50
8.2.170.0140.00322.96
8.2.160.0030.01720.49
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0100.00022.18
8.2.100.0120.00017.80
8.2.90.0000.00817.88
8.2.80.0040.00417.97
8.2.70.0000.00818.05
8.2.60.0040.00417.90
8.2.50.0050.00318.10
8.2.40.0000.00820.68
8.2.30.0090.00019.70
8.2.20.0000.00817.79
8.2.10.0040.00418.14
8.2.00.0030.00618.04
8.1.280.0110.00425.92
8.1.270.0000.00820.11
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00922.47
8.1.230.0120.00021.02
8.1.220.0050.00317.79
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0060.00317.23
8.1.180.0030.00618.10
8.1.170.0000.00918.57
8.1.160.0000.00721.92
8.1.150.0000.00818.76
8.1.140.0030.00617.46
8.1.130.0070.00017.73
8.1.120.0040.00417.44
8.1.110.0050.00317.44
8.1.100.0080.00017.30
8.1.90.0040.00417.46
8.1.80.0040.00417.48
8.1.70.0030.00517.31
8.1.60.0050.00517.56
8.1.50.0000.00917.46
8.1.40.0080.00017.56
8.1.30.0030.00717.56
8.1.20.0030.00617.58
8.1.10.0030.00617.60
8.1.00.0040.00417.45
8.0.300.0000.01019.90
8.0.290.0060.00316.75
8.0.280.0050.00318.34
8.0.270.0030.00317.16
8.0.260.0070.00017.16
8.0.250.0050.00217.03
8.0.240.0030.00316.98
8.0.230.0050.00217.04
8.0.220.0040.00416.89
8.0.210.0040.00416.98
8.0.200.0000.00617.05
8.0.190.0030.00616.95
8.0.180.0000.00716.90
8.0.170.0040.00416.93
8.0.160.0050.00317.07
8.0.150.0070.00016.97
8.0.140.0000.00716.94
8.0.130.0030.00313.34
8.0.120.0040.00416.91
8.0.110.0040.00416.98
8.0.100.0020.00516.98
8.0.90.0040.00416.89
8.0.80.0070.01016.90
8.0.70.0000.00716.85
8.0.60.0000.00816.99
8.0.50.0000.00816.84
8.0.30.0080.01017.07
8.0.20.0090.01017.40
8.0.10.0030.00516.91
8.0.00.0070.01316.85
7.4.330.0000.00515.08
7.4.320.0000.00616.34
7.4.300.0030.00316.44
7.4.290.0070.00016.46
7.4.280.0080.00016.55
7.4.270.0030.00316.47
7.4.260.0050.00316.59
7.4.250.0070.00016.63
7.4.240.0040.00416.54
7.4.230.0030.00316.61
7.4.220.0240.00316.57
7.4.210.0070.01116.71
7.4.200.0030.00316.74
7.4.160.0080.00816.43
7.4.150.0040.01517.40
7.4.140.0130.00717.86
7.4.130.0080.01116.54
7.4.120.0110.00816.58
7.4.110.0110.00716.30
7.4.100.0110.01116.72
7.4.90.0030.01316.73
7.4.80.0030.01419.39
7.4.70.0030.01616.50
7.4.60.0130.00916.50
7.4.50.0030.00616.60
7.4.40.0110.01116.41
7.4.30.0060.01716.39
7.4.00.0060.00814.69
7.3.330.0030.00513.39
7.3.320.0030.00313.38
7.3.310.0040.00416.28
7.3.300.0030.00316.25
7.3.290.0070.01216.38
7.3.280.0100.00816.37
7.3.270.0060.01217.40
7.3.260.0070.01116.74
7.3.250.0100.00716.34
7.3.240.0100.00716.64
7.3.230.0150.00916.39
7.3.210.0140.00416.51
7.3.200.0130.00316.46
7.3.190.0110.00816.45
7.3.180.0100.00616.53
7.3.170.0040.01816.41
7.3.160.0140.01016.43
7.2.330.0070.01116.65
7.2.320.0040.01416.66
7.2.310.0100.00616.64
7.2.300.0070.01116.51
7.2.290.0090.00916.36
7.2.60.0070.00716.78
7.2.00.0140.00619.34
7.1.200.0060.00615.59
7.1.100.0080.00818.05
7.1.70.0080.00816.70
7.1.60.0040.01819.12
7.1.50.0080.01116.77
7.1.00.0030.07722.54
7.0.200.0030.00716.57
7.0.100.0070.07020.13
7.0.90.0130.06720.06
7.0.80.0130.09019.91
7.0.70.0270.07320.04
7.0.60.0070.04320.01
7.0.50.0300.08020.35
7.0.40.0070.08020.04
7.0.30.0070.05020.10
7.0.20.0170.06320.08
7.0.10.0030.05320.12
7.0.00.0030.08720.10
5.6.280.0000.03320.86
5.6.250.0170.06020.52
5.6.240.0030.06020.64
5.6.230.0130.07320.71
5.6.220.0170.07320.65
5.6.210.0070.08020.79
5.6.200.0130.07321.16
5.6.190.0030.04721.09
5.6.180.0000.06721.12
5.6.170.0030.08021.00
5.6.160.0100.04320.99
5.6.150.0170.06721.12
5.6.140.0030.08021.07
5.6.130.0030.05021.13
5.6.120.0130.04020.98
5.6.110.0070.09021.05
5.6.100.0000.09021.16
5.6.90.0130.07721.02
5.6.80.0070.05720.38
5.6.70.0030.05720.35
5.6.60.0070.07020.48
5.6.50.0130.07320.49
5.6.40.0130.04720.44
5.6.30.0070.07020.50
5.6.20.0230.07320.52
5.6.10.0170.06320.44
5.6.00.0130.06720.52
5.5.380.0070.04020.44
5.5.370.0030.08720.40
5.5.360.0030.09020.40
5.5.350.0070.07720.43
5.5.340.0030.04720.96
5.5.330.0070.07020.82
5.5.320.0070.06320.93
5.5.310.0070.06320.87
5.5.300.0100.06720.82
5.5.290.0030.07020.95
5.5.280.0030.04720.82
5.5.270.0070.08020.65
5.5.260.0130.05020.80
5.5.250.0100.08720.75
5.5.240.0070.07720.23
5.5.230.0030.06320.30
5.5.220.0270.05720.14
5.5.210.0070.06020.04
5.5.200.0170.06320.30
5.5.190.0070.07020.18
5.5.180.0070.08320.18
5.5.160.0130.04020.28
5.5.150.0070.08020.28
5.5.140.0000.08720.29
5.5.130.0070.08320.25
5.5.120.0030.07720.24
5.5.110.0170.07020.25
5.5.100.0100.07320.11
5.5.90.0070.04320.13
5.5.80.0070.06720.11
5.5.70.0070.08320.10
5.5.60.0030.05720.09
5.5.50.0070.06320.18
5.5.40.0100.07320.14
5.5.30.0170.06720.18
5.5.20.0070.05320.09
5.5.10.0130.06720.16
5.5.00.0100.03720.09
5.4.450.0030.08019.64
5.4.440.0000.08719.54
5.4.430.0070.08319.35
5.4.420.0100.07719.20
5.4.410.0170.05719.23
5.4.400.0070.07019.18
5.4.390.0130.07319.25
5.4.380.0100.06319.13
5.4.370.0070.07019.07
5.4.360.0130.07019.20
5.4.350.0100.04018.90
5.4.340.0070.06019.23
5.4.320.0070.07319.16
5.4.310.0100.03719.14
5.4.300.0070.07719.18
5.4.290.0100.07318.93
5.4.280.0100.07718.90
5.4.270.0030.04319.16
5.4.260.0100.03719.00
5.4.250.0100.06319.02
5.4.240.0070.05019.08
5.4.230.0000.06719.04
5.4.220.0000.08719.12
5.4.210.0070.04319.21
5.4.200.0100.07019.17
5.4.190.0070.05018.89
5.4.180.0100.07019.15
5.4.170.0070.07719.02
5.4.160.0030.07718.93
5.4.150.0100.04018.89
5.4.140.0030.07716.50
5.4.130.0100.07316.44
5.4.120.0070.04016.25
5.4.110.0030.07716.54
5.4.100.0030.06016.44
5.4.90.0100.07016.41
5.4.80.0030.05316.36
5.4.70.0100.07016.38
5.4.60.0030.05716.33
5.4.50.0100.05716.46
5.4.40.0130.03316.30
5.4.30.0070.06016.37
5.4.20.0100.06316.49
5.4.10.0070.07716.47
5.4.00.0100.05315.83

preferences:
48.01 ms | 401 KiB | 5 Q