3v4l.org

run code in 300+ PHP versions simultaneously
<?php $goods=["ABC","XYZ","PQR","DEF"]; $qty=[12345,25120,14521,12541]; $rate=[12.00,13.02,15.00,14.00]; $words=["Total Value", "Frieght", "Total Taxable Value", "Tax", "Tax", "Tax", "Total Tax Amount"]; ?> <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($words);$i++) { ?> <tr> <td><?php echo $goods[$i];?></td> <td><?php echo $qty[$i];?></td> <td><?php echo $rate[$i];?></td> <td><?php echo $words[$i];?></td> </tr> <?php } ?> </table>
Output for git.master, git.master_jit, rfc.property-hooks
<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> <td>Total Value</td> </tr> <tr> <td>XYZ</td> <td>25120</td> <td>13.02</td> <td>Frieght</td> </tr> <tr> <td>PQR</td> <td>14521</td> <td>15</td> <td>Total Taxable Value</td> </tr> <tr> <td>DEF</td> <td>12541</td> <td>14</td> <td>Tax</td> </tr> <tr> <td> Warning: Undefined array key 4 in /in/m9Vu0 on line 20 </td> <td> Warning: Undefined array key 4 in /in/m9Vu0 on line 21 </td> <td> Warning: Undefined array key 4 in /in/m9Vu0 on line 22 </td> <td>Tax</td> </tr> <tr> <td> Warning: Undefined array key 5 in /in/m9Vu0 on line 20 </td> <td> Warning: Undefined array key 5 in /in/m9Vu0 on line 21 </td> <td> Warning: Undefined array key 5 in /in/m9Vu0 on line 22 </td> <td>Tax</td> </tr> <tr> <td> Warning: Undefined array key 6 in /in/m9Vu0 on line 20 </td> <td> Warning: Undefined array key 6 in /in/m9Vu0 on line 21 </td> <td> Warning: Undefined array key 6 in /in/m9Vu0 on line 22 </td> <td>Total Tax Amount</td> </tr> </table>

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:
31.77 ms | 405 KiB | 8 Q