3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $language; ?>" xml:lang="<?php echo $language; ?>"> <head> <title><?php echo $title; ?></title> <base href="<?php echo $base; ?>" /> <link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/my_invoice_pdf.css" media="all"/> <!--[if !IE 7]> <style type="text/css"> #wrap {display:table;height:100%} </style> <![endif]--> </head> <body style="width: 650px" onload="window.print();"> <?php $page=0; ?> <div id="wrap"> <div id="main"> <?php foreach ($orders as $order) { ?> <h1><?php echo $text_your_history_invoice; ?></h1> <table class="store" width="650px"> <tr> <td width="50%" valign="top"> <img src='<?php echo $order['store_invoicelogo']; ?>' style="padding-left: 4px"/> </td> <td width="50%" valign="top" align="right"><b><?php echo $order['store_name']; ?></b><br /> <?php echo $order['store_address']; ?><br /><br /> <?php if ($order['store_telephone']) { ?> <?php echo $text_telephone; ?><?php echo $order['store_telephone']; ?><br /> <?php } ?> <?php if ($order['store_fax']) { ?> <?php echo $text_fax; ?><?php echo $order['store_fax']; ?><br /> <?php } ?> <?php if ($order['store_email']) { ?> <?php echo $order['store_email']; ?><br /> <?php } ?> <?php if ($order['store_url']) { ?> <?php echo $order['store_url']; ?><br /> <?php } ?> </td> </tr> </table> <table class="address"> <tr class="heading"> <td width="50%" valign="top"><b><?php echo $text_to; ?></b></td> <td width="50%" valign="top"><b><?php echo $text_ship_to; ?></b></td> </tr> <tr> <td valign="top"><?php echo $order['payment_address']; ?><br/></td> <td valign="top"><?php echo $order['shipping_address']; ?></td> </tr> </table> </div> <table class="product"> <tr class="heading"> <td><b><?php echo $text_date_added; ?></b></td> <td><b><?php echo $text_order_id; ?></b></td> <td><b><?php echo $text_payment_method; ?></b></td> <td><b><?php echo $text_shipping_method; ?></b></td> </tr> <tr> <td><?php echo $order['date_added']; ?></td> <td><?php echo $order['order_id']; ?></td> <td><?php echo $order['payment_method']; ?></td> <td><?php echo $order['shipping_method']; ?></td> </tr> </table> <table class="product" width="100%"> <tr class="heading"> <td style="width:340px;"><b><?php echo $column_product; ?></b></td> <td style="width:15px;" align="right"><b><?php echo $column_quantity; ?></b></td> <td style="width:100px;" align="right"><b><?php echo $column_price; ?></b></td> <td style="width:100px;" align="right"><b><?php echo $column_total; ?></td> <td style="width:25px;" align="right"><b><?php echo $column_tax; ?></td> </tr> <?php $i = 1; ?> <?php foreach ($order['product'] as $product) { ?> <?php if(($i % 16) == 0) { ?> <tr></tr> </table> <div class="footer" > <table class="comment" width="650px"> <tr> <td align="center" style="width:600px; vertical-align:middle;"> <font color="#999999"> <?php if ($order['store_kvknummer']) { ?> <?php echo $text_kvknummer; ?><?php echo $order['store_kvknummer']; ?> <?php } ?> <?php if ($order['store_btwnummer']) { ?> <?php echo $text_btwnummer; ?><?php echo $order['store_btwnummer']; ?> <?php } ?> <?php if ($order['store_ibannummer']) { ?> <?php echo $text_ibannummer; ?><?php echo $order['store_ibannummer']; ?> <?php } ?> <?php if ($order['store_biccode']) { ?> <?php echo $text_biccode; ?><?php echo $order['store_biccode']; ?> <?php } ?> <?php if ($order['store_banknaam']) { ?> <?php if ($order['store_banknaam']) { ?> <?php echo $text_banknaam; ?><?php echo $order['store_banknummer']; ?> <?php } ?> <br /><?php echo "Op alle orders zijn onze algemene voorwaarden van toepassing."; ?> </td> <?php if ($order['show_invoice_qr']) { ?> <td style="width:40px; vertical-align:middle;" align="right"> <img src="<?php echo $order['matrix']; ?>" /> </td> <?php } ?> </tr> </table > </div> <?php $page = $page +1; ?> <h1 style="page-break-before:always"><?php echo $text_your_history_invoice; ?><br /><font style="font-size:9px;"><?php echo $text_vervolg_pagina . $page; ?></font></h1> <table class="store" width="650px"> <tr> <td width="50%" valign="top"> <img src='<?php echo $order['store_invoicelogo']; ?>' style="padding-left: 4px"/> </td> <td width="50%" valign="top" align="right"><b><?php echo $order['store_name']; ?></b><br /> <?php echo $order['store_address']; ?><br /><br /> <?php if ($order['store_telephone']) { ?> <?php echo $text_telephone; ?><?php echo $order['store_telephone']; ?><br /> <?php } ?> <?php if ($order['store_fax']) { ?> <?php echo $text_fax; ?><?php echo $order['store_fax']; ?><br /> <?php } ?> <?php if ($order['store_email']) { ?> <?php echo $order['store_email']; ?><br /> <?php } ?> <?php if ($order['store_url']) { ?> <?php echo $order['store_url']; ?><br /> <?php } ?> </td> </tr> </table> <table class="product"> <tr class="heading"> <td style="width:340px;"><b><?php echo $column_product; ?></b></td> <td style="width:15px;" align="right"><b><?php echo $column_quantity; ?></b></td> <td style="width:100px;" align="right"><b><?php echo $column_price; ?></b></td> <td style="width:100px;" align="right"><b><?php echo $column_total; ?></b></td> <td style="width:25px;" align="right"><b><?php echo $column_tax; ?></b></td> </tr> <?php } ?> <tr> <td><?php echo $product['name']; ?> <?php foreach ($product['option'] as $option) { ?> <br /> &nbsp;<sub> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></sub> <?php } ?></td> <td align="right"><?php echo $product['quantity']; ?></td> <td align="right"><?php echo $product['price']; ?></td> <td align="right"><?php echo $product['total']; ?></td> <td align="right"><?php echo $product['tax_percentage']; ?></td> </tr> <?php $i++; ?> <?php } ?> <?php foreach ($order['total'] as $total) { ?> <tr> <td align="right" colspan="3"><b><?php echo $total['title']; ?></b></td> <td align="right"><b><?php echo $total['text']; ?></b></td> <td></td> </tr> <?php } ?> </table> <?php if ($order['comment']) { ?> <table class="product"> <tr class="heading"> <td><b><?php echo $column_comment; ?></b></td> </tr> <tr> <td><?php echo $order['comment']; ?></td> </tr> </table> <?php } ?> <?php if ($order['payment_method']) { ?> <table class="product"> <tr class="heading"> <td><b><?php echo $text_payment_method; ?></b></td> </tr> <tr> <td><?php echo $order['payment_info']; ?></td> </tr> </table> <?php } ?> </div> </div> <div class="footer" > <table class="comment" width="650px"> <tr> <td align="center" style="width:600px; vertical-align:middle;"> <font color="#999999"> <?php if ($order['store_kvknummer']) { ?> <?php echo $text_kvknummer; ?><?php echo $order['store_kvknummer']; ?> <?php } ?> <?php if ($order['store_btwnummer']) { ?> <?php echo $text_btwnummer; ?><?php echo $order['store_btwnummer']; ?> <?php } ?> <?php if ($order['store_ibannummer']) { ?> <?php echo $text_ibannummer; ?><?php echo $order['store_ibannummer']; ?> <?php } ?> <?php if ($order['store_biccode']) { ?> <?php echo $text_biccode; ?><?php echo $order['store_biccode']; ?> <?php } ?> <?php if ($order['store_banknaam']) { ?> <?php echo $text_banknaam; ?><?php echo $order['store_banknummer']; ?> <?php } ?> <br /><?php echo "Op alle orders zijn onze algemene voorwaarden van toepassing."; ?> </td> <?php if ($order['show_invoice_qr']) { ?> <td style="width:40px; vertical-align:middle;" align="right"> <img src="<?php echo $order['matrix']; ?>" /> </td> <?php } ?> </tr> </table > </div> <!--<?php } ?> --></body> </html>
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected end of file in /in/tHu8m on line 223
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/tHu8m on line 223
Process exited with code 255.