3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $goods=["ABC","XYZ","PQR","DEF"]; $qty=[12345,25120,14521,12541]; $rate=[12.00,13.02,15.00,14.00]; ?> <table> <tr> <th>Sr No.</th> <th>Goods Description</th> <th>Total Quantity(pcs)</th> <th>Rate per unit(Rs.)</th> <th colspan="3">Amount</th> </tr> <?php for($i=0;$i<count($goods);$i++) { ?> <tr> <td><?php echo $goods[$i];?></td> <td><?php echo $qty[$i];?></td> <td><?php echo $rate[$i];?></td> </tr> <?php } ?> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Value</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Frieght</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Taxable Value</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Tax Amount</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Grand Total Tax Amount</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>ABC</td> <td></td> <td></td> </tr> </table>

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Arrow functions
<table> <tr> <th>Sr No.</th> <th>Goods Description</th> <th>Total Quantity(pcs)</th> <th>Rate per unit(Rs.)</th> <th colspan="3">Amount</th> </tr> <tr> <td>ABC</td> <td>12345</td> <td>12</td> </tr> <tr> <td>XYZ</td> <td>25120</td> <td>13.02</td> </tr> <tr> <td>PQR</td> <td>14521</td> <td>15</td> </tr> <tr> <td>DEF</td> <td>12541</td> <td>14</td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Value</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Frieght</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Taxable Value</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Tax Amount</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Grand Total Tax Amount</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>ABC</td> <td></td> <td></td> </tr> </table>

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