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.0.00.0200.00316.72
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.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