3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <title>Mitigation Template summary</title> <meta charset="utf-8" /> <meta name="author" content="Shashender Kumar" /> <meta name="description" content="" /> <style> .container{ margin:0 auto; width:85%; overflow:auto; } table.gridtable { margin:0 auto; width:95%; overflow:auto; font-family: helvetica,arial,sans-serif; font-size:14px; color:#333333; border-width: 1px; border-color: #666666; border-collapse: collapse; text-align: left; } table.gridtable th { border-width: 1px; padding: 6px; background-color: #D4E6F1; border-style: solid; border-color: #666666; } table.gridtable td { border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; } .error { color: white; background-color: red; } </style> </head> <body> <div class="container" id="container"> <table class="gridtable"> <form action="mtSummary.php" method="post"> <h2 style="text-align:center"> Mitigation Template : <?php echo $_GET["mitigationValue"]; ?> </h2> <thead> <tr> <!-- comment out <th>Mitigation Template</th> --> <th style="text-align:center">Counter Measures Enabled</th> </tr> </thead> </form> <?php $mitigVal = $_GET["mitigationValue"]; if (($csvfile = fopen("/home/testice/mt_summary.csv", "r")) !== FALSE) { while (($csvdata = fgetcsv($csvfile, 1000, ",")) !== FALSE) { if ($csvdata[0] == 'Mitigation Template' && $csvdata[1] == 'Countermeasures Enabled') { while (($csvdata = fgetcsv($csvfile, 1000, ",")) !== FALSE) { if($csvdata[0] !== $mitigVal ){ continue; } else { $string1 = $csvdata[1]; $str_arr = explode(" ",$string1); foreach ($str_arr as $value) { echo '<tr>'; echo '<td>' . $value . '</td>'; echo '</tr>'; } } } } } fclose($csvfile); } ?> </table> </div> </body> </html>

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.00418.32
8.3.50.0150.00618.18
8.3.40.0180.00321.95
8.3.30.0100.01019.01
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.180.0100.00625.92
8.2.170.0150.00618.99
8.2.160.0090.00622.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00820.94
8.2.110.0090.00022.13
8.2.100.0080.00417.97
8.2.90.0030.00617.97
8.2.80.0030.00619.15
8.2.70.0090.00017.75
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00719.38
8.2.30.0050.00218.23
8.2.20.0000.00718.12
8.2.10.0070.00019.43
8.2.00.0030.00519.49
8.1.280.0170.00325.92
8.1.270.0050.00323.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0050.00523.92
8.1.230.0110.00021.04
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0000.00817.22
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0090.00318.54
8.1.160.0040.00418.97
8.1.150.0000.00818.60
8.1.140.0070.00018.99
8.1.130.0030.00720.16
8.1.120.0040.00417.39
8.1.110.0040.00417.52
8.1.100.0000.00717.56
8.1.90.0000.00817.52
8.1.80.0030.00717.48
8.1.70.0000.01017.42
8.1.60.0030.00617.66
8.1.50.0040.00417.57
8.1.40.0090.00317.45
8.1.30.0110.00017.77
8.1.20.0030.00517.71
8.1.10.0030.00517.67
8.1.00.0000.00817.59
8.0.300.0070.00020.30
8.0.290.0060.00317.00
8.0.280.0030.00318.55
8.0.270.0040.00417.06
8.0.260.0030.00318.48
8.0.250.0050.00217.05
8.0.240.0040.00417.07
8.0.230.0000.00717.10
8.0.220.0000.00716.98
8.0.210.0000.00916.97
8.0.200.0030.00717.08
8.0.190.0040.00417.18
8.0.180.0070.00017.15
8.0.170.0050.00317.02
8.0.160.0050.00317.12
8.0.150.0060.00317.04
8.0.140.0000.00717.02
8.0.130.0030.00313.52
8.0.120.0040.00416.97
8.0.110.0070.00017.11
8.0.100.0000.00716.95
8.0.90.0020.00517.04
8.0.80.0070.00917.06
8.0.70.0000.00716.94
8.0.60.0040.00416.91
8.0.50.0000.00716.96
8.0.30.0090.01216.96
8.0.20.0130.00817.34
8.0.10.0000.00717.09
8.0.00.0200.00316.72
7.4.330.0000.00515.55
7.4.320.0000.00616.68
7.4.300.0000.00716.49
7.4.290.0040.00416.63
7.4.280.0040.00416.68
7.4.270.0030.00316.56
7.4.260.0040.00416.64
7.4.250.0000.00816.54
7.4.240.0000.00716.46
7.4.230.0000.00716.76
7.4.220.0040.00316.59
7.4.210.0080.00816.63
7.4.200.0000.00816.69
7.4.130.0160.00916.57
7.4.120.0140.01016.51
7.4.110.0170.00716.61
7.4.100.0140.01016.59
7.4.90.0110.01216.65
7.4.80.0120.00916.58
7.4.70.0140.00916.67
7.4.60.0110.01016.65
7.4.50.0110.01316.56
7.4.40.0090.01516.61
7.4.30.0140.00816.64
7.4.20.0100.01216.61
7.4.10.0140.00916.63
7.4.00.0100.01016.56
7.3.330.0030.00316.52
7.3.320.0030.00313.29
7.3.310.0040.00416.50
7.3.300.0030.00316.48
7.3.290.0110.00616.51
7.3.260.0140.01016.48
7.3.240.0120.00616.43
7.3.230.0120.01116.48
7.3.220.0130.01216.48
7.3.210.0140.00716.42
7.3.200.0120.00816.45
7.3.190.0160.00916.50
7.3.180.0150.00716.55
7.3.170.0160.00916.44
7.3.160.0130.01116.53
7.3.150.0120.01016.51
7.3.140.0130.01116.53
7.3.130.0120.01216.36
7.3.120.0100.01116.43
7.3.110.0150.01016.47
7.3.100.0120.01116.38
7.3.90.0130.01016.44
7.3.80.0160.00816.46
7.3.70.0180.00616.42
7.3.60.0120.01016.43
7.3.50.0150.00616.40
7.3.40.0100.01116.40
7.3.30.0160.00616.40
7.3.20.0110.01116.48
7.3.10.0240.00716.41
7.3.00.0140.00916.49
7.2.340.0130.01116.64
7.2.330.0140.00916.64
7.2.320.0120.01016.66
7.2.310.0150.00916.57
7.2.300.0110.01216.50
7.2.290.0130.00816.60
7.2.280.0160.00816.66
7.2.270.0130.01116.57
7.2.260.0160.00616.66
7.2.250.0140.01216.58
7.2.240.0140.01016.51
7.2.230.0170.00716.73
7.2.220.0140.01016.63
7.2.210.0120.01116.76
7.2.200.0110.01116.59
7.2.190.0150.00916.54
7.2.180.0160.00916.57
7.2.170.0150.00816.56
7.2.160.0150.01016.60
7.2.150.0110.01516.62
7.2.140.0240.01416.67
7.2.130.0150.00816.75
7.2.120.0150.01216.66
7.2.110.0160.01016.68
7.2.100.0170.00816.58
7.2.90.0160.00816.60
7.2.80.0120.01416.69
7.2.70.0120.01016.75
7.2.60.0190.00716.59
7.2.50.0150.00916.66
7.2.40.0160.00816.57
7.2.30.0150.01116.67
7.2.20.0110.01416.65
7.2.10.0170.00916.62
7.2.00.0130.01216.50

preferences:
56.7 ms | 400 KiB | 5 Q