3v4l.org

run code in 300+ PHP versions simultaneously
<?php $accountNumber = "N/A";//"28947754"; $confirmationNumber = "N/A";//"1352524556"; $sess = array(/*"EL_xml_Error"=>"Invalid credit card number or credit card type. Please try again. If the difficulty continues, please go to http://support.earthlink.net and contact us by email or live chat. You may also call 1-800-719-4660 for assistance."*/); if(($accountNumber !== "" && $accountNumber !== "N/A") && ($confirmationNumber !== "" && $confirmationNumber !== "N/A")) { $displayString = "<h1 style=\"text-decoration: underline;\">Order Successfully Placed</h1>"; $displayString .= "<div id=\"orderConfirmed\" name=\"orderConfirmed\">"; $displayString .= "<p>Your order has been placed successfully. Please find your account number and confirmation number below.<br />Keep these numbers for your reference should you need further assistance with your order."; $displayString .= "<ul class=\"confirmationInfo\">"; $displayString .= "<li>Account Number: <strong>{$accountNumber}</strong></li>"; $displayString .= "<li>Confirmation Number: <strong>{$confirmationNumber}</strong></li>"; $displayString .= "</ul>"; $displayString .= "<p>If you need further information concerning this order, please call 1-888-327-8454.</p>"; $displayString .= "</div>"; echo $displayString; } else if(array_key_exists("EL_xml_Error",$sess) && isset($sess["EL_xml_Error"])) { if(($accountNumber !== "" && $accountNumber !== "N/A") && ($confirmationNumber !== "" && $confirmationNumber !== "N/A")) { $displayString = "<h1 style=\"text-decoration: underline;\">Order Successfully Placed</h1>"; $displayString .= "<div id=\"orderConfirmed\" name=\"orderConfirmed\">"; $displayString .= "<p>Your order has been placed successfully. Please find your account number and confirmation number below.<br />Keep these numbers for your reference should you need further assistance with your order."; $displayString .= "<ul class=\"confirmationInfo\">"; $displayString .= "<li>Account Number: <strong>{$accountNumber}</strong></li>"; $displayString .= "<li>Confirmation Number: <strong>{$confirmationNumber}</strong></li>"; $displayString .= "</ul>"; $displayString .= "<p>If you need further information concerning this order, please call 1-888-327-8454.</p>"; $displayString .= "</div>"; echo $displayString; } else { $displayString = "<h1 style=\"text-decoration: underline;\">Order Failed</h1>"; $displayString .= "<div style=\"color: red;\" id=\"orderConfirmed\" name=\"orderConfirmed\">"; $displayString .= "<strong>EarthLink returned the following error: {$sess["EL_xml_Error"]}</strong>"; $displayString .= "</div>"; echo $displayString; } } else if($this->accountNumber == "N/A" || $this->displayString == "N/A") { $displayString = "<h1 style=\"text-decoration: underline;\">Order Failed</h1>"; $displayString .= "<div id=\"orderConfirmed\" name=\"orderConfirmed\">"; $displayString .= "An unidentified problem has occurred while placing this order."; $displayString .= "</div>"; echo $displayString; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Using $this when not in object context in /in/85aVo:44 Stack trace: #0 {main} thrown in /in/85aVo on line 44
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:
42.06 ms | 401 KiB | 8 Q