3v4l.org

run code in 300+ PHP versions simultaneously
<?php $correctTimestamp = correctMondayTimestamp(); $time_query = "data_ordine BETWEEN DATE('".date("Y-m-d",$correctTimestamp)."') AND DATE_ADD(DATE('".date("Y-m-d",strtotime("sunday this week"))."'), INTERVAL 1 DAY)"; $begin = new DateTime(date("c", $correctTimestamp)); echo "TQ: $time_query\nB: ".date_format('U',$begin); function correctMondayTimestamp(){ if(date('N') == 7) { return strtotime('monday last week'); } else { return strtotime('monday this week'); } }

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.70.0070.00716.88
8.3.60.0000.02116.88
8.3.50.0090.00716.50
8.3.40.0070.00719.22
8.3.30.0110.00319.00
8.3.20.0130.00321.73
8.3.10.0050.00321.73
8.3.00.0000.00819.78
8.2.180.0070.01117.13
8.2.170.0090.00922.96
8.2.160.0130.00321.27
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00420.51
8.2.120.0040.00426.35
8.2.110.0070.00319.31
8.2.100.0070.00417.97
8.2.90.0050.00318.00
8.2.80.0080.00019.16
8.2.70.0080.00017.93
8.2.60.0000.00818.28
8.2.50.0030.00518.10
8.2.40.0060.00319.42
8.2.30.0040.00419.31
8.2.20.0000.00818.07
8.2.10.0040.00418.08
8.2.00.0000.00718.20
8.1.280.0070.00725.92
8.1.270.0040.00422.23
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.20
8.1.230.0040.00819.08
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0080.00017.60
8.1.180.0070.00019.09
8.1.170.0000.00818.73
8.1.160.0000.00719.13
8.1.150.0080.00022.03
8.1.140.0000.00819.75
8.1.130.0000.00720.79
8.1.120.0070.00017.63
8.1.110.0000.00817.63
8.1.100.0090.00017.61
8.1.90.0040.00417.71
8.1.80.0070.00017.69
8.1.70.0030.00317.74
8.1.60.0040.00417.80
8.1.50.0080.00017.71
8.1.40.0040.00417.63
8.1.30.0000.00817.74
8.1.20.0000.00817.84
8.1.10.0000.00717.70
8.1.00.0040.00417.70
8.0.300.0000.00718.77
8.0.290.0070.00017.00
8.0.280.0070.00018.64
8.0.270.0030.00317.33
8.0.260.0000.00718.43
8.0.250.0000.00717.25
8.0.240.0000.00917.14
8.0.230.0000.00717.27
8.0.220.0080.00017.18
8.0.210.0080.00317.22
8.0.200.0050.00317.27
8.0.190.0000.00817.29
8.0.180.0070.00017.21
8.0.170.0100.00317.27
8.0.160.0000.00717.10
8.0.150.0000.00717.18
8.0.140.0040.00417.15
8.0.130.0040.00413.64
8.0.120.0000.00717.18
8.0.110.0030.00317.21
8.0.100.0040.00417.11
8.0.90.0000.00817.13
8.0.80.0140.00317.19
8.0.70.0040.00417.11
8.0.60.0070.00017.11
8.0.50.0000.00717.02
8.0.30.0050.01117.29
8.0.20.0110.01017.40
8.0.10.0070.00017.31
8.0.00.0150.00416.99
7.4.330.0000.00715.55
7.4.320.0000.00716.77
7.4.300.0030.00316.80
7.4.290.0000.00716.71
7.4.280.0060.00316.78
7.4.270.0080.00016.81
7.4.260.0000.00716.58
7.4.250.0000.00816.67
7.4.240.0000.00716.81
7.4.230.0070.00016.77
7.4.220.0100.01416.91
7.4.210.0130.00316.80
7.4.200.0030.00316.82
7.4.160.0120.01016.77
7.4.150.0090.00917.40
7.4.140.0050.01317.86
7.4.130.0040.01716.79
7.4.120.0140.00816.68
7.4.110.0080.00816.71
7.4.100.0130.00316.93
7.4.90.0090.00916.79
7.4.80.0180.02919.39
7.4.70.0030.01316.99
7.4.60.0120.00416.75
7.4.50.0040.01416.91
7.4.40.0030.01316.64
7.4.30.0030.01316.73
7.4.00.0070.00715.39
7.3.330.0070.00013.59
7.3.320.0060.00013.59
7.3.310.0070.00016.46
7.3.300.0070.00016.58
7.3.290.0070.00816.57
7.3.280.0080.01016.53
7.3.270.0070.01017.40
7.3.260.0110.00616.67
7.3.250.0130.00616.70
7.3.240.0120.00416.77
7.3.230.0030.01316.77
7.3.210.0060.01216.59
7.3.200.0080.01116.63
7.3.190.0100.00716.67
7.3.180.0080.00916.67
7.3.170.0040.01416.55
7.3.160.0060.00916.80
7.2.330.0030.01416.77
7.2.320.0160.00316.95
7.2.310.0040.01317.19
7.2.300.0150.00616.97
7.2.290.0030.01316.93
7.2.60.0000.01317.09
7.2.00.0080.00419.59
7.1.200.0040.00715.89
7.1.70.0030.01017.48
7.1.60.0600.01333.60
7.1.50.0530.01333.39
7.1.40.0570.01032.80
7.1.30.0530.01332.67
7.1.20.0900.02033.13
7.1.10.0530.01315.13
7.1.00.0470.00715.01
7.0.200.0370.00715.21
7.0.190.0400.01315.03
7.0.180.0470.01014.43
7.0.170.0570.01314.60
7.0.160.0670.01014.57
7.0.150.0830.00714.74
7.0.140.0600.01014.73
7.0.130.0430.01014.70
7.0.120.0400.00714.75
7.0.110.0430.01014.59
7.0.100.0500.01014.51
7.0.90.0530.01314.88
7.0.80.0670.00714.64
7.0.70.1430.01714.63
7.0.60.0530.01714.28
7.0.50.0730.01714.60
7.0.40.0770.01014.76
7.0.30.0670.00714.84
7.0.20.0770.01314.88
7.0.10.0670.01714.78
7.0.00.0400.01314.84

preferences:
53.61 ms | 401 KiB | 5 Q