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>

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.0120.00618.43
8.3.50.0040.01116.21
8.3.40.0070.00718.88
8.3.30.0040.01118.66
8.3.20.0040.00420.29
8.3.10.0040.00421.98
8.3.00.0080.00020.90
8.2.180.0110.00316.63
8.2.170.0070.01022.96
8.2.160.0100.00322.12
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0080.00022.03
8.2.120.0030.00526.35
8.2.110.0100.00022.11
8.2.100.0070.00417.84
8.2.90.0050.00319.34
8.2.80.0080.00417.97
8.2.70.0100.00317.63
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0000.01020.64
8.2.30.0000.00821.10
8.2.20.0000.00718.05
8.2.10.0030.00518.06
8.2.00.0000.00718.09
8.1.280.0120.00325.92
8.1.270.0040.00423.89
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0000.00822.74
8.1.230.0070.00317.76
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0070.00018.97
8.1.150.0000.00918.82
8.1.140.0040.00419.57
8.1.130.0070.00418.80
8.1.120.0000.00717.36
8.1.110.0040.00417.36
8.1.100.0040.00417.46
8.1.90.0050.00317.47
8.1.80.0030.00317.42
8.1.70.0070.00017.43
8.1.60.0030.00617.50
8.1.50.0050.00317.46
8.1.40.0000.00817.47
8.1.30.0000.00817.48
8.1.20.0040.00417.60
8.1.10.0000.00817.55
8.1.00.0030.00517.49
8.0.300.0050.00318.77
8.0.290.0080.00016.75
8.0.280.0070.00018.36
8.0.270.0070.00017.31
8.0.260.0030.00316.98
8.0.250.0070.00016.98
8.0.240.0040.00416.80
8.0.230.0000.00716.93
8.0.220.0000.00716.91
8.0.210.0030.00316.88
8.0.200.0070.00016.96
8.0.190.0040.00416.84
8.0.180.0080.00016.79
8.0.170.0080.00016.97
8.0.160.0030.00516.96
8.0.150.0040.00416.82
8.0.140.0040.00416.98
8.0.130.0030.00513.41
8.0.120.0080.00016.89
8.0.110.0000.00816.91
8.0.100.0070.00017.06
8.0.90.0000.00716.81
8.0.80.0140.00616.95
8.0.70.0040.00416.81
8.0.60.0040.00416.99
8.0.50.0000.00816.79
8.0.30.0120.00717.15
8.0.20.0080.01417.40
8.0.10.0070.00016.93
8.0.00.0130.00517.09
7.4.330.0050.00015.55
7.4.320.0000.00716.50
7.4.300.0000.00616.60
7.4.290.0000.00716.50
7.4.280.0030.00516.61
7.4.270.0030.00316.61
7.4.260.0060.00316.56
7.4.250.0030.00316.48
7.4.240.0030.00516.62
7.4.230.0070.00016.67
7.4.220.0000.00716.50
7.4.210.0080.00716.62
7.4.200.0000.00716.40
7.4.160.0110.00516.44
7.4.150.0060.01217.40
7.4.140.0110.00717.86
7.4.130.0180.00716.57
7.4.120.0100.00916.55
7.4.110.0090.01216.56
7.4.100.0140.01416.69
7.4.90.0120.00616.42
7.4.80.0120.01219.39
7.4.70.0120.00616.42
7.4.60.0150.01216.62
7.4.50.0100.00216.39
7.4.40.0000.01716.56
7.4.30.0140.01216.59
7.4.00.0060.00914.89
7.3.330.0050.00013.26
7.3.320.0050.00013.19
7.3.310.0030.00416.19
7.3.300.0040.00416.27
7.3.290.0000.00716.35
7.3.280.0060.01016.33
7.3.270.0030.01517.40
7.3.260.0150.00716.60
7.3.250.0130.00916.49
7.3.240.0080.00916.46
7.3.230.0140.00316.61
7.3.210.0140.00316.29
7.3.200.0070.01016.33
7.3.190.0030.01316.45
7.3.180.0130.00316.35
7.3.170.0130.00916.53
7.3.160.0070.01016.57
7.3.120.0060.01215.04
7.3.110.0000.01914.57
7.3.100.0060.00914.85
7.3.90.0060.00615.11
7.3.80.0060.01014.93
7.3.70.0110.00014.71
7.3.60.0030.01114.96
7.3.50.0040.00814.68
7.3.40.0060.00914.96
7.3.30.0040.00714.59
7.3.20.0000.01316.56
7.3.10.0090.00616.85
7.3.00.0050.01016.70
7.2.330.0110.00716.52
7.2.320.0070.01416.52
7.2.310.0140.00316.73
7.2.300.0110.01416.56
7.2.290.0080.01516.51
7.2.250.0100.01015.25
7.2.240.0100.00714.88
7.2.230.0080.00314.98
7.2.220.0000.01815.06
7.2.210.0080.00615.18
7.2.200.0040.01015.04
7.2.190.0060.00914.70
7.2.180.0070.01015.15
7.2.170.0030.01214.83
7.2.130.0110.00416.91
7.2.120.0060.00316.93
7.2.110.0060.00916.73
7.2.100.0100.00316.90
7.2.90.0070.00417.11
7.2.80.0120.00616.57
7.2.70.0120.00616.88
7.2.60.0070.00516.94
7.2.50.0080.00416.95
7.2.40.0090.00617.02
7.2.30.0080.00816.70
7.2.20.0110.00716.90
7.2.10.0060.00917.03
7.2.00.0060.00618.09
7.1.330.0040.01215.93
7.1.320.0040.00715.86
7.1.310.0040.01115.63
7.1.300.0030.01415.86
7.1.290.0140.00015.93
7.1.280.0030.01215.92
7.1.270.0060.00315.63
7.1.260.0070.00715.65
7.1.250.0130.00015.68
7.1.240.0000.00915.63
7.1.230.0100.00315.68
7.1.220.0060.00615.62
7.1.210.0120.00615.78
7.1.200.0110.00215.83
7.1.190.0080.00815.81
7.1.180.0060.00915.78
7.1.170.0060.01015.44
7.1.160.0030.00715.75
7.1.150.0080.00015.96
7.1.140.0110.00715.79
7.1.130.0070.01015.84
7.1.120.0120.00415.73
7.1.110.0070.00716.00
7.1.100.0640.00516.12
7.1.90.0090.00015.96
7.1.80.0110.00715.76
7.1.70.0060.00816.58
7.1.60.0250.01624.68
7.1.50.0600.01024.27
7.1.40.0290.01124.18
7.1.30.0330.01424.27
7.1.20.0470.00624.18
7.1.10.0220.01015.34
7.1.00.0350.00715.16
7.0.330.0030.01015.31
7.0.320.0080.00815.40
7.0.310.0080.00815.20
7.0.300.0030.01015.36
7.0.290.0060.00915.36
7.0.280.0130.00015.33
7.0.270.0070.00315.36
7.0.260.0100.00315.10
7.0.250.0040.01215.17
7.0.240.0090.00615.37
7.0.230.0120.00315.50
7.0.220.0000.01715.41
7.0.210.0070.00615.55
7.0.200.0320.00715.21
7.0.190.0280.00815.11
7.0.180.0280.01014.75
7.0.170.0360.00715.02
7.0.160.0310.01014.82
7.0.150.0270.00914.96
7.0.140.0370.01214.95
7.0.130.0270.01115.21
7.0.120.0330.01015.04
7.0.110.0270.00914.76
7.0.100.0260.01114.89
7.0.90.0250.00614.78
7.0.80.0280.00514.77
7.0.70.0340.00214.92
7.0.60.0330.00814.87
7.0.50.0250.00814.95
7.0.40.0350.01014.16
7.0.30.0360.01013.85
7.0.20.0180.01013.91
7.0.10.0250.00514.11
7.0.00.0220.00814.02
5.6.380.0080.00814.55

preferences:
37.21 ms | 400 KiB | 5 Q