3v4l.org

run code in 300+ PHP versions simultaneously
<?php $accountNumber = "28947754"; $confirmationNumber = "1352524556"; $sess = array("stuff"=>""); 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; } }
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<h1 style="text-decoration: underline;">Order Successfully Placed</h1><div id="orderConfirmed" name="orderConfirmed"><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.<ul class="confirmationInfo"><li>Account Number: <strong>28947754</strong></li><li>Confirmation Number: <strong>1352524556</strong></li></ul><p>If you need further information concerning this order, please call 1-888-327-8454.</p></div>

preferences:
314.04 ms | 407 KiB | 460 Q