3v4l.org

run code in 300+ PHP versions simultaneously
<?php include "conexion.php"; $fecha = date('Y-m-j'); $ayer = strtotime ( '-1 day' , strtotime ( $fecha ) ) ; $ayer = date ( 'Y-m-j' , $ayer ); $hacedias = strtotime ( '-8 day' , strtotime ( $fecha ) ) ; $hacedias = date ( 'Y-m-j' , $hacedias ); $consulta = "SELECT date_format(fecha,'%d %M') AS FECHA, round((SUM(`TotalMinutos`)/60),1) FROM reporte WHERE ingeniero ='". $_SESSION['id']."' AND fecha BETWEEN '$hacedias' AND '$ayer' GROUP BY fecha"; $rs = mysql_query($consulta,$conexion); if(mysql_num_rows($rs)!=0) { ?> <p></p> <p></p> <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100"> <tr> <?php $i = 0; while ($reg=mysql_fetch_array($rs)){ if($i == 8){ echo "</tr><tr>"; $i = 0; } ?> <td width="100"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="150"> <tr> <td width="80"><B><?=$reg['FECHA']; ?></B></td> </tr> <tr> <td width="80"><?=$reg['round((SUM(`TotalMinutos`)/60),1)']; ?> Horas</td> </tr> </table> </td> <?php $i++; } ?> </tr> </table> <p> <?PHP } else { echo "<h3><p style='color:#FF0000'> ATENCION!!! <br> No has registrado tus tiempos en los ultimos 5 dias.</p></h3>"; } ?> </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.0140.00718.55
8.3.50.0120.00522.21
8.3.40.0040.01119.05
8.3.30.0110.00319.20
8.3.20.0040.00420.33
8.3.10.0040.00422.10
8.3.00.0080.00022.18
8.2.180.0110.00416.88
8.2.170.0110.01122.96
8.2.160.0040.01119.46
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00419.60
8.2.110.0090.00020.71
8.2.100.0080.00418.16
8.2.90.0030.00519.42
8.2.80.0030.00619.88
8.2.70.0040.00418.00
8.2.60.0040.00418.18
8.2.50.0060.00318.07
8.2.40.0000.00818.28
8.2.30.0040.00418.46
8.2.20.0040.00417.95
8.2.10.0060.00319.86
8.2.00.0040.00417.99
8.1.280.0070.01025.92
8.1.270.0040.00422.18
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0030.00623.98
8.1.230.0130.00023.86
8.1.220.0040.00417.91
8.1.210.0030.00518.77
8.1.200.0080.00417.73
8.1.190.0080.00017.76
8.1.180.0050.00318.10
8.1.170.0060.00318.75
8.1.160.0060.00322.11
8.1.150.0050.00318.93
8.1.140.0050.00217.65
8.1.130.0080.00018.00
8.1.120.0000.00817.77
8.1.110.0040.00417.76
8.1.100.0000.00817.79
8.1.90.0000.00817.61
8.1.80.0000.00717.74
8.1.70.0040.00417.68
8.1.60.0000.00817.76
8.1.50.0040.00417.73
8.1.40.0040.00417.81
8.1.30.0040.00417.83
8.1.20.0050.00317.78
8.1.10.0030.00617.94
8.1.00.0040.00417.76
8.0.300.0000.00718.77
8.0.290.0070.00017.43
8.0.280.0040.00418.64
8.0.270.0030.00317.48
8.0.260.0030.00317.26
8.0.250.0060.00317.36
8.0.240.0000.00817.39
8.0.230.0000.00717.42
8.0.220.0000.00717.22
8.0.210.0000.00717.18
8.0.200.0040.00417.41
8.0.190.0030.00517.25
8.0.180.0040.00417.23
8.0.170.0040.00417.36
8.0.160.0040.00417.18
8.0.150.0000.00717.32
8.0.140.0040.00417.16
8.0.130.0030.00313.67
8.0.120.0000.00817.16
8.0.110.0000.00717.38
8.0.100.0040.00417.33
8.0.90.0070.00017.38
8.0.80.0150.00017.34
8.0.70.0050.00217.27
8.0.60.0040.00417.30
8.0.50.0040.00417.35
8.0.30.0100.01017.40
8.0.20.0160.00717.56
8.0.10.0020.00517.28
8.0.00.0090.00916.93
7.4.330.0000.00515.00
7.4.320.0070.00016.72
7.4.300.0030.00316.80
7.4.290.0030.00316.66
7.4.280.0040.00416.77
7.4.270.0040.00416.73
7.4.260.0040.00416.76
7.4.250.0000.00716.70
7.4.240.0060.00116.82
7.4.230.0030.00516.80
7.4.220.0030.01416.71
7.4.210.0110.00616.79
7.4.200.0030.00316.93
7.4.190.0040.00416.98
7.4.160.0080.00816.72
7.4.150.0090.00917.40
7.4.140.0060.01117.86
7.4.130.0120.00616.78
7.4.120.0120.00916.84
7.4.110.0120.00616.78
7.4.100.0120.00916.93
7.4.90.0240.02716.91
7.4.80.0060.01619.39
7.4.70.0130.00416.78
7.4.60.0060.01316.97
7.4.50.0040.00416.98
7.4.40.0040.01522.77
7.4.30.0090.01117.03
7.4.00.0000.01715.27
7.3.330.0000.00613.46
7.3.320.0000.00613.44
7.3.310.0070.00016.55
7.3.300.0070.00016.54
7.3.290.0060.00916.58
7.3.280.0070.01116.64
7.3.270.0000.01817.40
7.3.260.0290.01316.77
7.3.250.0130.00816.71
7.3.240.0130.00316.83
7.3.230.0170.00316.80
7.3.210.0110.00416.86
7.3.200.0150.00619.39
7.3.190.0100.00716.79
7.3.180.0130.00316.75
7.3.170.0090.01216.65
7.3.160.0090.00816.82
7.3.120.0030.01415.01
7.2.330.0190.00017.02
7.2.320.0120.00916.82
7.2.310.0190.00016.73
7.2.300.0110.00916.86
7.2.290.0150.00616.80
7.2.60.0000.01516.94
7.2.00.0030.00919.70
7.1.200.0030.01016.09
7.1.100.0060.00618.36
7.1.70.0080.00417.35
7.1.60.0100.01419.82
7.1.50.0070.01816.96
7.1.00.0030.07322.28
7.0.200.0030.00917.13
7.0.140.0000.07022.10
7.0.80.0030.08019.92
7.0.70.0030.06720.04
7.0.60.0170.06319.98
7.0.50.0030.04020.30
7.0.40.0030.09020.08
7.0.30.0200.07320.10
7.0.20.0000.09720.12
7.0.10.0030.09020.14
7.0.00.0070.05720.13
5.6.280.0030.07321.14
5.6.230.0170.07320.64
5.6.220.0030.09020.59
5.6.210.0070.03320.76
5.6.200.0000.04320.93
5.6.190.0200.04321.02
5.6.180.0200.04021.12
5.6.170.0100.04321.09
5.6.160.0070.07321.02
5.6.150.0100.03720.96
5.6.140.0100.08020.95
5.6.130.0030.09320.96
5.6.120.0030.07720.89
5.6.110.0030.09320.95
5.6.100.0100.07321.09
5.6.90.0100.04721.09
5.6.80.0100.07720.49
5.6.70.0070.08320.33
5.6.60.0000.05320.32
5.6.50.0100.05020.35
5.6.40.0100.07320.43
5.6.30.0100.07320.40
5.6.20.0100.07020.29
5.6.10.0130.07020.31
5.6.00.0230.06720.28
5.5.370.0100.07320.36
5.5.360.0070.07320.45
5.5.350.0070.09020.39
5.5.340.0070.05020.84
5.5.330.0070.04720.89
5.5.320.0170.03720.87
5.5.310.0170.03720.93
5.5.300.0100.08020.79
5.5.290.0130.07320.80
5.5.280.0030.08320.89
5.5.270.0130.04320.91
5.5.260.0100.08720.64
5.5.250.0030.07020.68
5.5.240.0170.06320.15
5.5.230.0070.06320.30
5.5.220.0070.03720.16
5.5.210.0070.04720.25
5.5.200.0070.07720.18
5.5.190.0030.08320.00
5.5.180.0170.07020.18
5.5.160.0130.05320.23
5.5.150.0200.08320.25
5.5.140.0070.07320.04
5.5.130.0000.08020.08
5.5.120.0100.07720.13
5.5.110.0030.04720.26
5.5.100.0030.06019.95
5.5.90.0100.05020.06
5.5.80.0200.02720.01
5.5.70.0100.07720.15
5.5.60.0000.08320.07
5.5.50.0000.06320.07
5.5.40.0070.05319.96
5.5.30.0100.07720.00
5.5.20.0100.05319.96
5.5.10.0030.09019.98
5.5.00.0030.06720.08
5.4.450.0070.07319.37
5.4.440.0100.08019.43
5.4.430.0130.07719.46
5.4.420.0070.04319.11
5.4.410.0070.07019.30
5.4.400.0070.07718.91
5.4.390.0100.07718.99
5.4.380.0030.04019.13
5.4.370.0100.07319.13
5.4.360.0000.06719.09
5.4.350.0030.07719.05
5.4.340.0030.05318.82
5.4.320.0100.07018.91
5.4.310.0030.08319.05
5.4.300.0070.04318.88
5.4.290.0070.07318.91
5.4.280.0000.09318.96
5.4.270.0100.06019.12
5.4.260.0030.07018.98
5.4.250.0070.07019.06
5.4.240.0070.04019.07
5.4.230.0070.07319.07
5.4.220.0030.08319.03
5.4.210.0030.05018.94
5.4.200.0030.04318.94
5.4.190.0030.04318.81
5.4.180.0100.06719.16
5.4.170.0030.08019.16
5.4.160.0100.07319.09
5.4.150.0030.04718.77
5.4.140.0100.05716.45
5.4.130.0070.07016.18
5.4.120.0000.05716.45
5.4.110.0070.06716.39
5.4.100.0000.04016.42
5.4.90.0100.06016.46
5.4.80.0030.06016.35
5.4.70.0070.06716.26
5.4.60.0170.05716.19
5.4.50.0030.06316.40
5.4.40.0070.04316.27
5.4.30.0100.05016.20
5.4.20.0070.07316.23
5.4.10.0030.05016.21
5.4.00.0000.08015.84
5.3.290.0030.08714.68
5.3.280.0070.07314.43
5.3.270.0030.05014.65
5.3.260.0100.04314.48
5.3.250.0070.05714.61
5.3.240.0070.06714.44
5.3.230.0130.04714.60
5.3.220.0070.04314.60
5.3.210.0130.07314.59
5.3.200.0100.04014.54
5.3.190.0130.06314.45
5.3.180.0070.04014.40
5.3.170.0100.04314.52
5.3.160.0100.05014.56
5.3.150.0170.06014.52
5.3.140.0100.05714.40
5.3.130.0070.08014.39
5.3.120.0170.07014.56
5.3.110.0130.06314.48
5.3.100.0100.07313.92
5.3.90.0070.07314.03
5.3.80.0030.05314.01
5.3.70.0070.06014.02
5.3.60.0000.08013.79
5.3.50.0100.04713.84
5.3.40.0100.05013.90
5.3.30.0030.04313.84
5.3.20.0170.05013.67
5.3.10.0000.07713.54
5.3.00.0030.07313.65
5.2.170.0000.04311.16
5.2.160.0070.05310.96
5.2.150.0100.05711.12
5.2.140.0000.06311.00
5.2.130.0030.06311.08
5.2.120.0030.03710.94
5.2.110.0030.03311.19
5.2.100.0000.06310.91
5.2.90.0070.04010.96
5.2.80.0030.06310.98
5.2.70.0000.03310.96
5.2.60.0030.04011.03
5.2.50.0070.06011.08
5.2.40.0070.03010.81
5.2.30.0070.05711.04
5.2.20.0000.05310.98
5.2.10.0000.06010.95
5.2.00.0000.03010.79
5.1.60.0000.04010.06
5.1.50.0100.04310.09
5.1.40.0070.04010.08
5.1.30.0070.03310.29
5.1.20.0000.06310.32
5.1.10.0000.05010.09
5.1.00.0100.03010.07
5.0.50.0000.0308.56
5.0.40.0070.0208.51
5.0.30.0000.0378.42
5.0.20.0000.0238.42
5.0.10.0100.0108.42
5.0.00.0000.0378.42
4.4.90.0000.0178.42
4.4.80.0000.0178.42
4.4.70.0030.0378.42
4.4.60.0000.0338.42
4.4.50.0030.0178.42
4.4.40.0000.0278.42
4.4.30.0070.0178.42
4.4.20.0030.0178.42
4.4.10.0030.0138.42
4.4.00.0030.0278.42
4.3.110.0000.0178.42
4.3.100.0070.0138.42
4.3.90.0030.0178.42
4.3.80.0070.0408.42
4.3.70.0070.0138.42
4.3.60.0030.0338.42
4.3.50.0000.0338.42
4.3.40.0030.0278.42
4.3.30.0000.0308.42
4.3.20.0030.0178.42
4.3.10.0070.0138.42
4.3.00.0000.0178.42

preferences:
55.19 ms | 401 KiB | 5 Q