3v4l.org

run code in 500+ PHP versions simultaneously
<?php //just generate some test dates $dates = []; for ($i = 1; $i<=7; $i++) { $dates["date0".$i] = "2022-08-0".$i; } extract($dates); $row = array("table_name" => "test", "threshold" => 5); //generate some random test data foreach ($dates as $key => $val) { $row[$val] = rand(0, 10); } var_dump($row); $rowId = 0; $table_rows = array(); //now for the important bit $html = '<tr> <td style="text-align:center"><b>'.$row['table_name'].'</td> <td style="text-align:center;'.($row["$date07"] < $row["threshold"] ? "background-color:red;" : "").'">'.$row["$date07"].'</td> <td style="text-align:center;'.($row["$date06"] < $row["threshold"] ? "background-color:red;" : "").'">'.$row["$date06"].'</td> <td style="text-align:center;'.($row["$date05"] < $row["threshold"] ? "background-color:red;" : "").'">'.$row["$date05"].'</td> <td style="text-align:center;'.($row["$date04"] < $row["threshold"] ? "background-color:red;" : "").'">'.$row["$date04"].'</td> <td style="text-align:center;'.($row["$date03"] < $row["threshold"] ? "background-color:red;" : "").'">'.$row["$date03"].'</td> <td style="text-align:center;'.($row["$date02"] < $row["threshold"] ? "background-color:red;" : "").'">'.$row["$date02"].'</td> <td style="text-align:center;'.($row["$date01"] < $row["threshold"] ? "background-color:red;" : "").'">'.$row["$date01"].'</td> </tr>'; echo $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.1.90.0120.00317.53
8.1.80.0080.00517.51
8.1.70.0080.00417.50
8.1.60.0120.00517.59
8.1.50.0140.00017.55
8.1.40.0090.00617.38
8.1.30.0050.01017.68
8.1.20.0040.01217.63
8.1.10.0120.00317.61
8.1.00.0130.00017.54
8.0.220.0000.00916.91
8.0.210.0040.00416.95
8.0.200.0050.00516.87
8.0.190.0040.00817.00
8.0.180.0100.00516.91
8.0.170.0070.01016.88
8.0.160.0150.00016.97
8.0.150.0140.00216.77
8.0.140.0050.01016.93
8.0.130.0110.00416.87
8.0.120.0070.00716.94
8.0.110.0050.00916.88
8.0.100.0110.00316.92
8.0.90.0050.00916.90
8.0.80.0140.00016.99
8.0.70.0120.00316.92
8.0.60.0120.00216.96
8.0.50.0050.00916.95
8.0.30.0080.00816.97
8.0.20.0150.00017.02
8.0.10.0100.00517.07
7.4.300.0110.00316.53
7.4.290.0120.00516.63
7.4.280.0050.00516.61
7.4.270.0120.00416.50
7.4.260.0090.00316.58
7.4.250.0080.00816.64
7.4.240.0080.00416.61
7.4.230.0090.00616.46
7.4.220.0170.00016.67
7.4.210.0080.00716.64
7.4.200.0100.00316.66
7.4.190.0090.00716.61
7.4.180.0100.00416.62
7.4.160.0140.00016.75
7.4.150.0070.00716.64
7.4.140.0130.00016.41
7.4.130.0140.00016.43
7.4.120.0050.00516.52
7.4.110.0060.00316.59
7.4.100.0000.00916.45
7.4.90.0100.00016.48
7.4.80.0120.00416.54
7.4.70.0080.00916.52
7.4.60.0070.00716.41
7.4.50.0000.01316.39
7.4.40.0040.00716.44
7.4.30.0080.00416.44
7.4.20.0090.00616.44
7.4.10.0120.00316.34
7.4.00.0130.00316.42

preferences:
42.63 ms | 782 KiB | 5 Q