3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category design * @package base_default * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ ?> <div class="page-title"> <h1><?php echo $this->__('Your order has been received.') ?></h1> </div> <?php echo $this->getMessagesBlock()->getGroupedHtml() ?> <h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2> <?php if ($this->getOrderId()):?> <?php if ($this->getCanViewOrder()) :?> <p><?php echo $this->__('Your order # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p> <?php else :?> <p><?php echo $this->__('Your order # is: %s.', $this->escapeHtml($this->getOrderId())) ?></p> <?php endif;?> <p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p> <?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?> <p> <?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?> <?php echo $this->getChildHtml() ?> </p> <?php endif;?> <?php endif;?> <?php if ($this->getAgreementRefId()): ?> <p><?php echo $this->__('Your billing agreement # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getAgreementUrl()), $this->escapeHtml($this->getAgreementRefId())))?></p> <?php endif;?> <?php if ($profiles = $this->getRecurringProfiles()):?> <p><?php echo $this->__('Your recurring payment profiles:'); ?></p> <ul class="disc"> <?php foreach($profiles as $profile):?> <?php $profileIdHtml = ($this->getCanViewProfiles() ? sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getProfileUrl($profile)), $this->escapeHtml($this->getObjectData($profile, 'reference_id'))) : $this->escapeHtml($this->getObjectData($profile, 'reference_id')));?> <li><?php echo $this->__('Payment profile # %s: "%s".', $profileIdHtml, $this->escapeHtml($this->getObjectData($profile, 'schedule_description')))?></li> <?php endforeach;?> </ul> <?php endif;?> <div class="buttons-set"> <button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button> </div> <?php /** * Customisation * */ ?> <h1></h1> <body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;"> <div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td align="center" valign="top" style="padding:20px 0 20px 0"> <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;"> <!-- [ header starts here] --> <tr> <td valign="top"><a href="{{store url=""}}"><img src="{{var logo_url}}" alt="{{var logo_alt|escape}}" style="margin-bottom:10px;" border="0"/></a></td> </tr> <!-- [ middle starts here] --> <tr> <td valign="top"> <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;"">Many thanks for your order, {{htmlescape var=$order.getCustomerName()}}</h1> <h2 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;"">Here's what happens next..</h2> <p style="font-size:12px; line-height:16px; margin:0;"> <p>You will receive an order confirmation email shortly with details of your order. </p> <p>Once your order is ready for dispatch, you'll received track and trace code per individual parcels in your email. </p> <p> Please also check your junk email folder and add our email address in safe-list. </p> <p> You can check the status of your order by <a href="{{store url="customer/account/"}}" style="color:#1E7EC8;">logging into your account</a>. </p> <p> If you have any questions about your order please contact us at <a href="mailto:{{config path='trans_email/ident_support/email'}}" style="color:#1E7EC8;">{{config path='trans_email/ident_support/email'}}</a> or call us at <span class="nobr">{{config path='general/store_information/phone'}}</span> Monday - Friday, 9am - 6pm, CET. </p> <p style="font-size:12px; line-height:16px; margin:0;">Your order summary is below. Thank you again for your business.</p> </tr> <tr> <td> <h2 style="font-size:18px; font-weight:normal; margin:0;">Your Order #{{var order.increment_id}} <small>(placed on {{var order.getCreatedAtFormated('long')}})</small></h2> <?php if ($this->getOrderId()):?> <?php if ($this->getCanViewOrder()) :?> <p><?php echo $this->__('Your order # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p> <?php else :?> <p><?php echo $this->__('Your order # is: %s.', $this->escapeHtml($this->getOrderId())) ?></p> <?php endif;?> <?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?> <p> <?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?> <?php echo $this->getChildHtml() ?> </p> <?php endif;?> <?php endif;?> </td> </tr> <tr> <td> <table cellspacing="0" cellpadding="0" border="0" width="650"> <thead> <tr> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Billing Information:</th> <th width="10"></th> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Payment Method:</th> </tr> </thead> <tbody> <tr> <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;"> <?php $shipping_address_data = $order_details->getShippingAddress(); // Output the ship-to address information echo "<br>" . $shipping_address_data['firstname']; echo " " . $shipping_address_data['lastname']; echo "<br>" . $shipping_address_data['street']; echo "<br>" . $shipping_address_data['city']; echo ", " . $shipping_address_data['region']; echo " " . $shipping_address_data['postcode']; echo "<br>" . $shipping_address_data['country_id']; ?> </td> <td>&nbsp;</td> <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;"> <?php echo "<br>" . $billing_address_data['firstname']; echo " " . $billing_address_data['lastname']; echo "<br>" . $billing_address_data['street']; echo "<br>" . $billing_address_data['city']; echo ", " . $billing_address_data['region']; echo " " . $billing_address_data['postcode']; echo "<br>" . $billing_address_data['country_id']; ?> </td> </tr> </tbody> </table> <br/> <tr> <td> <table cellspacing="0" cellpadding="0" border="0" width="650"> <thead> <tr> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Billing Information:</th> <th width="10"></th> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Payment Method:</th> </tr> </thead> <tbody> <tr> <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;"> <?php // Get shipping method $shipping_method = $order_details->_data["shipping_description"]; ?> </td> <td>&nbsp;</td> <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;"> // Get payment information <?php $payment_method = $order_details->getPayment()->getMethodInstance()->getTitle(); ?> </td> </tr> </tbody> </table> <br/> <table cellspacing="0" cellpadding="0" border="0" width="650"> <thead> tr> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Product Name</th> <th width="10"></th> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Unit Price</th> <th width="10"></th> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Quantity</th> <th width="10"></th> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Subtotal</th> <th width="10"></th> <tbody> ?> *** Product Listing ***/ // Iterate through each product listing the sku, the name, the quantity ordered, and the item price <?php foreach ($order_details->getAllItems() as $item) { $_product = Mage::getModel(‘catalog/product’)->load($items->getProductId()); $product_small_image_path = Mage::helper(‘catalog/image’)->init($_product, ‘small_image’)->resize(135); ?> <tr> <td><span><img src=”<?php echo $product_small_image_path ?>”/></span><? echo $items->getName();?></td> <td> <?php echo '<p class="price">' . Mage::helper("core")->currency($item->getPrice()) . '</p>'; ?> </td> <td> <?php echo '<p class="qty">' . round($item->getQtyOrdered(), 0) . '</p>'; ?> </td> <td> <?php echo '<p class="lineprice">' . Mage::helper("core")->currency($item->getPrice() * $item->getQtyOrdered()) . '</p>'; ?> </td> <tr> <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you for your business with <strong>{{config path="general/store_information/name"}}</strong> <br> Let us know your feedback on <strong>www.facebook.com/indianstore</strong> </br> </p></center></td> </tr> <tr> <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">www.ekirana.nl is owned by Ras4all <br> KvK# 55200370 <br> BTW# NL523994515B01 <br> Vareseweg 121-123, 3047AT, <br> Rotterdam, The Netherlands <br></p></center></td> </tr> </table> </td> </tr> </table> </div> </body>

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.310.0270.06319.16
5.4.300.0200.04719.15
5.4.290.0200.05318.78
5.4.280.0230.07318.93
5.4.270.0230.06718.93
5.4.260.0230.04319.13
5.4.250.0170.04019.06
5.4.240.0130.04019.08
5.4.230.0170.04019.26
5.4.220.0130.04018.95
5.4.210.0100.04019.17
5.4.200.0130.04018.89
5.4.190.0100.04019.08
5.4.180.0130.03719.23
5.4.170.0170.04718.77
5.4.160.0170.03318.88
5.4.150.0230.03019.07
5.4.140.0200.03016.37
5.4.130.0170.04016.27
5.4.120.0170.03316.38
5.4.110.0130.04716.38
5.4.100.0100.03316.43
5.4.90.0170.03716.44
5.4.80.0170.03716.41
5.4.70.0170.04016.14
5.4.60.0200.03016.41
5.4.50.0170.03316.49
5.4.40.0200.03316.41
5.4.30.0130.04316.33
5.4.20.0170.03316.20
5.4.10.0170.03716.52
5.4.00.0170.03715.78
5.3.280.0170.04014.67
5.3.270.0100.04314.52
5.3.260.0030.03714.53
5.3.250.0230.03014.72
5.3.240.0270.04714.68
5.3.230.0170.03714.50
5.3.220.0200.03714.69
5.3.210.0130.04714.54
5.3.200.0170.03714.47
5.3.190.0170.04014.47
5.3.180.0130.04714.54
5.3.170.0170.04714.72
5.3.160.0270.03014.61
5.3.150.0130.04014.64
5.3.140.0230.04014.46
5.3.130.0200.03714.56
5.3.120.0070.05314.66
5.3.110.0100.04314.46
5.3.100.0200.03313.94
5.3.90.0300.02313.91
5.3.80.0130.04014.02
5.3.70.0000.04013.92
5.3.60.0030.03714.11
5.3.50.0470.03013.88
5.3.40.1600.03313.86
5.3.30.1700.04013.96
5.3.20.1670.03013.84
5.3.10.1870.02013.57
5.3.00.1630.02013.71
5.2.170.1330.02711.13
5.2.160.1430.02311.16
5.2.150.1030.03011.09
5.2.140.1330.02711.05
5.2.130.1330.03011.03
5.2.120.1230.03711.03
5.2.110.1300.03311.18
5.2.100.1270.03711.02
5.2.90.1530.03011.12
5.2.80.1770.03311.01
5.2.70.1730.03711.11
5.2.60.0800.03010.95
5.2.50.0170.05711.13
5.2.40.0170.05011.07
5.2.30.0170.03011.09
5.2.20.0200.05710.93
5.2.10.0200.04710.84
5.2.00.0070.04010.68
5.1.60.0170.0209.96
5.1.50.0130.02310.15
5.1.40.0170.02010.07
5.1.30.0100.03310.41
5.1.20.0130.03010.39
5.1.10.0200.02710.19
5.1.00.0100.03010.15
5.0.50.0070.0208.53
5.0.40.0070.0208.38
5.0.30.0100.0308.36
5.0.20.0070.0208.51
5.0.10.0070.0238.15
5.0.00.0070.0308.13
4.4.90.0070.0177.55
4.4.80.0030.0177.55
4.4.70.0070.0137.55
4.4.60.0030.0177.55
4.4.50.0100.0107.55
4.4.40.0030.0307.55
4.4.30.0070.0177.55
4.4.20.0030.0177.55
4.4.10.0030.0207.55
4.4.00.0030.0307.55
4.3.110.0100.0107.55
4.3.100.0030.0207.55
4.3.90.0000.0177.55
4.3.80.0000.0277.55
4.3.70.0100.0107.55
4.3.60.0070.0177.55
4.3.50.0070.0137.55
4.3.40.0070.0377.55
4.3.30.0030.0137.55
4.3.20.0000.0207.55
4.3.10.0030.0207.55
4.3.00.0000.0207.55

preferences:
145.16 ms | 1394 KiB | 7 Q