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 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.40.0140.00018.67
8.3.30.0040.01118.71
8.3.20.0000.00820.18
8.3.10.0000.00921.73
8.3.00.0050.00320.55
8.2.170.0040.01418.99
8.2.160.0090.00622.96
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00320.51
8.2.120.0080.00026.35
8.2.110.0070.00420.52
8.2.100.0000.01217.85
8.2.90.0040.00418.16
8.2.80.0000.00819.28
8.2.70.0040.00417.48
8.2.60.0070.00317.93
8.2.50.0000.00818.16
8.2.40.0070.00420.42
8.2.30.0020.00521.03
8.2.20.0040.00418.04
8.2.10.0000.00818.01
8.2.00.0050.00217.92
8.1.270.0040.00422.14
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00020.88
8.1.230.0040.00720.90
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00417.23
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0000.00818.36
8.1.160.0070.00019.07
8.1.150.0060.00318.81
8.1.140.0000.00819.56
8.1.130.0090.00018.82
8.1.120.0050.00317.38
8.1.110.0030.00517.46
8.1.100.0000.00717.42
8.1.90.0040.00417.45
8.1.80.0000.00717.50
8.1.70.0000.00717.32
8.1.60.0000.00717.57
8.1.50.0000.00817.52
8.1.40.0040.00417.38
8.1.30.0000.00717.59
8.1.20.0080.00017.61
8.1.10.0040.00417.49
8.1.00.0030.00517.49
8.0.300.0040.00420.12
8.0.290.0060.00316.75
8.0.280.0000.00718.49
8.0.270.0050.00316.79
8.0.260.0060.00016.70
8.0.250.0000.00716.88
8.0.240.0040.00416.75
8.0.230.0050.00316.91
8.0.220.0040.00416.79
8.0.210.0000.00716.83
8.0.200.0000.00716.81
8.0.190.0030.00616.84
8.0.180.0000.00716.86
8.0.170.0080.00016.89
8.0.160.0000.00716.78
8.0.150.0050.00216.72
8.0.140.0070.00016.80
8.0.130.0000.00713.30
8.0.120.0000.00716.82
8.0.110.0050.00216.94
8.0.100.0000.00716.75
8.0.90.0050.00316.77
8.0.80.0080.00816.83
8.0.70.0040.00416.88
8.0.60.0000.00716.95
8.0.50.0070.00016.84
8.0.30.0110.00916.98
8.0.20.0100.01017.40
8.0.10.0070.00016.91
8.0.00.0080.00816.54
7.4.330.0050.00015.55
7.4.320.0000.00716.65
7.4.300.0000.00816.59
7.4.290.0030.00316.61
7.4.280.0040.00416.50
7.4.270.0070.00016.50
7.4.260.0070.00316.48
7.4.250.0030.00316.44
7.4.240.0070.00016.40
7.4.230.0030.00316.26
7.4.220.0040.01316.55
7.4.210.0080.00716.57
7.4.200.0070.00016.41
7.4.160.0080.00916.36
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0220.00316.58
7.4.120.0130.00916.55
7.4.110.0190.00716.34
7.4.100.0060.01216.41
7.4.90.0100.01616.52
7.4.80.0150.00519.39
7.4.70.0150.00316.68
7.4.60.0140.00316.43
7.4.50.0040.00816.46
7.4.40.0140.00416.41
7.4.30.0090.00616.41
7.4.00.0090.00614.90
7.3.330.0000.00613.15
7.3.320.0000.00612.96
7.3.310.0000.00716.35
7.3.300.0030.00316.21
7.3.290.0040.00416.15
7.3.280.0050.01116.25
7.3.270.0040.01417.40
7.3.260.0090.00816.31
7.3.250.0110.00816.36
7.3.240.0140.00316.49
7.3.230.0120.00616.51
7.3.210.0100.00716.54
7.3.200.0090.00916.43
7.3.190.0120.00916.38
7.3.180.0080.01116.31
7.3.170.0110.00616.54
7.3.160.0060.00916.55
7.2.330.0190.00016.43
7.2.320.0130.00616.73
7.2.310.0030.01316.49
7.2.300.0030.01316.58
7.2.290.0080.00816.75
7.2.00.0080.00419.37
7.1.100.0040.00817.95
7.1.70.0090.00917.19
7.1.60.1000.01333.23
7.1.50.0700.01032.71
7.1.40.0770.01032.57
7.1.30.0730.01032.69
7.1.20.0730.01032.69
7.1.10.1130.01314.65
7.1.00.0700.01015.02
7.0.200.0730.01315.11
7.0.190.0470.01315.07
7.0.180.0570.02014.21
7.0.170.0500.01014.53
7.0.160.0830.01314.38
7.0.150.0400.01714.36
7.0.140.0730.00714.39
7.0.130.0670.00714.63
7.0.120.0430.01014.65
7.0.110.0430.01314.35
7.0.100.0600.01314.42
7.0.90.0700.01314.35
7.0.80.0800.01314.64
7.0.70.0700.00714.62
7.0.60.0630.01014.26
7.0.50.0500.01714.63
7.0.40.0730.00714.57
7.0.30.0770.00714.70
7.0.20.0870.00314.50
7.0.10.0400.01014.26
7.0.00.0430.00314.61

preferences:
43.23 ms | 400 KiB | 5 Q