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 $i+1 .".";?></td> <td><?php if(isset($goods[$i])) echo $goods[$i];?></td> <td><?php if(isset($qty[$i])) echo $qty[$i];?></td> <td><?php if(isset($rate[$i])) echo $rate[$i];?></td> <td><?php echo $words[$i];?></td> </tr> <?php } ?> </table>

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)
8.3.60.0140.00718.55
8.3.50.0000.01516.37
8.3.40.0080.00818.71
8.3.30.0110.00318.48
8.3.20.0040.00420.35
8.3.10.0090.00021.76
8.3.00.0120.00620.78
8.2.180.0040.01118.18
8.2.170.0140.00722.96
8.2.160.0130.00322.16
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00422.26
8.2.120.0040.00426.35
8.2.110.0030.00621.18
8.2.100.0090.00320.35
8.2.90.0080.00019.47
8.2.80.0030.00517.97
8.2.70.0060.00318.05
8.2.60.0000.00918.21
8.2.50.0040.00418.10
8.2.40.0030.00522.14
8.2.30.0040.00419.33
8.2.20.0040.00418.14
8.2.10.0040.00417.97
8.2.00.0000.00718.07
8.1.280.0120.00325.92
8.1.270.0090.00021.97
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00522.18
8.1.230.0110.00019.16
8.1.220.0100.00017.79
8.1.210.0090.00018.77
8.1.200.0040.00417.23
8.1.190.0000.00817.23
8.1.180.0090.00018.10
8.1.170.0000.00818.52
8.1.160.0020.00518.96
8.1.150.0070.00020.67
8.1.140.0000.00719.65
8.1.130.0040.00419.28
8.1.120.0070.00017.47
8.1.110.0040.00417.50
8.1.100.0030.00617.44
8.1.90.0040.00417.47
8.1.80.0040.00417.49
8.1.70.0000.00717.33
8.1.60.0050.00317.52
8.1.50.0030.00517.43
8.1.40.0000.00717.51
8.1.30.0080.00017.65
8.1.20.0040.00417.73
8.1.10.0030.00517.54
8.1.00.0040.00417.43
8.0.300.0040.00419.64
8.0.290.0080.00016.72
8.0.280.0000.00818.44
8.0.270.0030.00316.84
8.0.260.0030.00316.89
8.0.250.0000.00716.93
8.0.240.0040.00416.88
8.0.230.0060.00316.98
8.0.220.0080.00016.81
8.0.210.0040.00416.79
8.0.200.0050.00216.94
8.0.190.0000.00816.93
8.0.180.0000.00816.94
8.0.170.0040.00416.82
8.0.160.0030.00516.98
8.0.150.0000.00916.88
8.0.140.0040.00416.91
8.0.130.0000.00713.41
8.0.120.0070.00016.89
8.0.110.0050.00216.82
8.0.100.0040.00416.97
8.0.90.0000.00716.88
8.0.80.0070.01416.84
8.0.70.0040.00416.80
8.0.60.0000.00816.78
8.0.50.0040.00417.02
8.0.30.0140.00517.20
8.0.20.0130.00617.40
8.0.10.0000.00816.93
8.0.00.0070.01016.84
7.4.330.0050.00015.55
7.4.320.0030.00316.63
7.4.300.0050.00216.51
7.4.290.0030.00616.62
7.4.280.0040.00416.43
7.4.270.0080.00016.60
7.4.260.0040.00416.52
7.4.250.0030.00516.50
7.4.240.0000.00816.51
7.4.230.0000.00716.40
7.4.220.0130.00716.46
7.4.210.0070.01116.55
7.4.200.0030.00316.43
7.4.160.0100.00816.52
7.4.150.0120.00817.40
7.4.140.0110.01117.86
7.4.130.0060.01316.59
7.4.120.0140.00916.53
7.4.110.0120.00916.71
7.4.100.0100.01316.50
7.4.90.0150.00316.41
7.4.80.0180.00019.39
7.4.70.0100.00716.55
7.4.60.0080.01216.49
7.4.50.0070.00716.49
7.4.40.0040.01416.43
7.4.30.0120.00616.43
7.4.00.0000.01614.91
7.3.330.0000.00513.10
7.3.320.0030.00213.09
7.3.310.0070.00016.24
7.3.300.0000.00616.30
7.3.290.0040.01116.29
7.3.280.0060.01116.28
7.3.270.0090.00917.40
7.3.260.0090.00916.44
7.3.250.0150.00516.47
7.3.240.0090.00816.45
7.3.230.0070.01116.37
7.3.210.0110.00716.34
7.3.200.0060.00916.45
7.3.190.0100.01316.33
7.3.180.0090.00616.53
7.3.170.0030.01416.45
7.3.160.0100.00716.54
7.2.330.0160.00316.78
7.2.320.0090.01216.46
7.2.310.0090.00916.84
7.2.300.0140.00316.49
7.2.290.0120.00816.56
7.2.60.0060.00616.97
7.2.00.0160.00819.32
7.1.200.0040.00415.68
7.1.100.0040.00818.11
7.1.70.0000.01017.33
7.1.60.0800.01333.26
7.1.50.0770.01033.18
7.1.40.1400.00732.58
7.1.30.1100.01332.77
7.1.20.1270.01732.82
7.1.10.0830.01714.78
7.1.00.0700.00714.81
7.0.200.0870.01314.88
7.0.190.0600.01314.85
7.0.180.1170.01314.33
7.0.170.1100.01714.64
7.0.160.1030.01314.47
7.0.150.0930.01714.64
7.0.140.0530.01314.39
7.0.130.0870.01714.56
7.0.120.0700.00714.61
7.0.110.0570.01014.70
7.0.100.0570.01014.57
7.0.90.0670.01314.74
7.0.80.0030.01314.63
7.0.70.0670.00714.43
7.0.60.0830.01014.39
7.0.50.0770.01014.76
7.0.40.0630.01014.56
7.0.30.0700.00014.59
7.0.20.0600.00714.65
7.0.10.0630.00714.54
7.0.00.0700.01014.73

preferences:
54.1 ms | 400 KiB | 5 Q