3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strsum_enddate = date("Y-m-d"); $sumend_timestamp = strtotime($strsum_enddate); $tempstart_timestamp = strtotime("-1 day"); $strtemp_date = date("Y-m-d", $tempstart_timestamp); // $artemp = explode("-", $strsum_enddate); $artemp = explode("-", $strtemp_date); $startyear = intval($artemp[0]) - 1; // derive start-date from end-date $startmonth = $artemp[1]; if (substr($startmonth, 0, 1) == "0") { $startmonth = substr($startmonth, 1); } $startmonth = intval($startmonth); $startday = $artemp[2]; if (substr($startday, 0, 1) == "0") { $startday = substr($startday, 1); } $startday = intval($startday); if ($startmonth == 2 && $startday == 29) { // if feb 29, set to feb 28, 2 years is not a leap year if ($emember_flag == 0) { // if not emember, go back 1 year $startday = 28; } } $strsum_startdate = $startyear ."-". $startmonth ."-". $startday; $sumstart_timestamp = strtotime($strsum_startdate); echo $sumstart_timestamp . "\n"; echo $sumend_timestamp . "\n";

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.0040.01516.63
8.3.50.0110.00521.97
8.3.40.0040.01818.92
8.3.30.0070.00719.22
8.3.20.0040.00420.39
8.3.10.0000.00823.66
8.3.00.0060.00319.05
8.2.180.0160.00016.88
8.2.170.0140.00722.96
8.2.160.0100.00320.51
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00020.86
8.2.110.0060.00322.21
8.2.100.0110.00018.01
8.2.90.0040.00419.48
8.2.80.0000.00817.97
8.2.70.0050.00317.85
8.2.60.0000.01018.05
8.2.50.0050.00318.07
8.2.40.0000.00820.04
8.2.30.0050.00218.33
8.2.20.0000.00818.07
8.2.10.0040.00418.14
8.2.00.0000.00817.97
8.1.280.0170.00025.92
8.1.270.0040.00423.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.95
8.1.230.0070.00419.16
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.47
8.1.190.0050.00317.25
8.1.180.0080.00418.10
8.1.170.0040.00418.73
8.1.160.0040.00421.99
8.1.150.0060.00618.90
8.1.140.0000.00717.71
8.1.130.0080.00017.97
8.1.120.0000.00817.76
8.1.110.0020.00517.73
8.1.100.0000.00817.63
8.1.90.0040.00417.58
8.1.80.0030.00617.58
8.1.70.0000.00717.71
8.1.60.0030.00617.81
8.1.50.0050.00317.70
8.1.40.0090.00017.76
8.1.30.0000.00817.71
8.1.20.0000.00817.74
8.1.10.0000.00817.66
8.1.00.0000.00817.79
8.0.300.0000.00818.77
8.0.290.0040.00417.30
8.0.280.0070.00018.55
8.0.270.0000.00717.32
8.0.260.0000.00617.41
8.0.250.0000.00717.26
8.0.240.0040.00417.21
8.0.230.0030.00317.19
8.0.220.0070.00017.21
8.0.210.0050.00217.23
8.0.200.0030.00317.10
8.0.190.0070.00017.19
8.0.180.0040.00417.19
8.0.170.0040.00417.22
8.0.160.0000.00817.08
8.0.150.0080.00017.09
8.0.140.0030.00517.12
8.0.130.0030.00313.48
8.0.120.0040.00417.08
8.0.110.0020.00517.08
8.0.100.0040.00417.05
8.0.90.0000.00717.05
8.0.80.0070.01417.06
8.0.70.0050.00316.95
8.0.60.0050.00217.20
8.0.50.0040.00417.15
8.0.30.0090.00917.39
8.0.20.0080.01117.40
8.0.10.0040.00417.08
8.0.00.0070.01217.03
7.4.330.0000.00515.32
7.4.320.0030.00316.86
7.4.300.0030.00316.71
7.4.290.0030.00316.84
7.4.280.0080.00016.72
7.4.270.0000.00716.58
7.4.260.0000.01016.72
7.4.250.0030.00316.82
7.4.240.0030.00316.66
7.4.230.0070.00016.90
7.4.220.0110.01416.84
7.4.210.0030.01416.69
7.4.200.0000.00816.70
7.4.190.0050.00316.87
7.4.160.0140.00316.91
7.4.150.0150.00317.40
7.4.140.0110.00817.86
7.4.130.0120.00616.79
7.4.120.0090.01016.75
7.4.110.0040.01416.66
7.4.100.0070.01016.62
7.4.90.0080.00816.70
7.4.80.0130.00816.84
7.4.70.0100.00616.70
7.4.60.0100.00616.62
7.4.50.0060.00016.83
7.4.40.0130.00916.90
7.4.30.0070.01016.76
7.4.00.0000.01315.39
7.3.330.0030.00313.36
7.3.320.0050.00013.29
7.3.310.0070.00016.53
7.3.300.0040.00416.44
7.3.290.0030.01216.59
7.3.280.0110.00616.44
7.3.270.0110.00617.40
7.3.260.0100.01016.68
7.3.250.0150.00516.60
7.3.240.0070.01416.48
7.3.230.0100.00716.63
7.3.210.0130.01016.71
7.3.200.0040.01219.39
7.3.190.0130.00317.00
7.3.180.0030.01316.84
7.3.170.0090.00916.55
7.3.160.0100.00716.81
7.3.120.0060.00615.00
7.2.330.0040.01417.02
7.2.320.0070.01116.92
7.2.310.0130.00316.81
7.2.300.0140.00316.87
7.2.290.0120.01217.09
7.2.60.0000.01317.21
7.2.00.0030.00919.50
7.1.200.0040.00715.95
7.1.100.0080.00018.45
7.1.70.0000.00817.44
7.1.60.0070.01519.46
7.1.50.0070.01416.95
7.1.00.0030.07722.42
7.0.200.0000.00717.04
7.0.140.0070.07022.11
7.0.100.0130.05019.92
7.0.90.0030.05020.03
7.0.80.0130.04019.95
7.0.70.0200.04019.92
7.0.60.0030.08319.98
7.0.50.0030.05320.27
7.0.40.0070.08720.13
7.0.30.0070.08320.00
7.0.20.0070.08720.04
7.0.10.0100.05320.04
7.0.00.0100.08720.12
5.6.280.0100.06721.00
5.6.250.0070.08320.67
5.6.240.0100.05720.64
5.6.230.0170.06720.68
5.6.220.0000.09020.56
5.6.210.0100.04020.60
5.6.200.0170.08020.95
5.6.190.0100.08021.01
5.6.180.0170.07321.06
5.6.170.0170.08321.08
5.6.160.0070.06021.05
5.6.150.0170.07021.03
5.6.140.0130.07721.08
5.6.130.0030.05021.02
5.6.120.0130.07321.13
5.6.110.0070.04021.02
5.6.100.0130.08021.01
5.6.90.0070.08320.98
5.6.80.0100.07720.46
5.6.70.0100.03720.55
5.6.60.0070.03720.40
5.6.50.0100.04020.41
5.6.40.0100.03320.45
5.6.30.0030.04020.30
5.6.20.0000.04320.37
5.6.10.0030.03720.41
5.6.00.0030.04020.48
5.5.380.0130.07720.36
5.5.370.0170.08020.42
5.5.360.0030.05020.40
5.5.350.0030.08320.47
5.5.340.0170.08020.80
5.5.330.0070.04320.88
5.5.320.0100.05320.93
5.5.310.0100.08020.77
5.5.300.0070.05020.84
5.5.290.0030.08320.93
5.5.280.0130.08020.84
5.5.270.0070.08320.82
5.5.260.0100.08020.91
5.5.250.0030.05720.58
5.5.240.0030.06320.32
5.5.230.0030.08020.25
5.5.220.0030.07720.14
5.5.210.0030.04020.27
5.5.200.0130.03020.16
5.5.190.0030.04320.24
5.5.180.0000.04720.13
5.5.160.0000.04320.24
5.5.150.0000.06720.13
5.5.140.0030.05020.25
5.5.130.0000.04020.24
5.5.120.0070.03720.13
5.5.110.0030.05320.15
5.5.100.0100.04320.18
5.5.90.0030.04019.93
5.5.80.0000.03720.07
5.5.70.0000.04320.11
5.5.60.0100.03020.04
5.5.50.0030.08320.07
5.5.40.0070.07020.08
5.5.30.0030.07020.09
5.5.20.0070.05719.94
5.5.10.0030.03720.12
5.5.00.0100.05320.00
5.4.450.0030.07019.39
5.4.440.0030.08319.27
5.4.430.0130.07719.35
5.4.420.0030.07719.43
5.4.410.0030.07719.42
5.4.400.0130.06019.06
5.4.390.0000.04318.80
5.4.380.0070.04018.88
5.4.370.0000.05719.12
5.4.360.0030.04019.22
5.4.350.0000.04019.05
5.4.340.0030.04019.07
5.4.320.0030.04018.90
5.4.310.0100.03719.14
5.4.300.0070.03318.89
5.4.290.0030.03718.80
5.4.280.0000.05718.97
5.4.270.0100.04318.90
5.4.260.0030.07719.05
5.4.250.0100.07318.80
5.4.240.0030.07319.05
5.4.230.0070.07319.09
5.4.220.0130.02719.04
5.4.210.0030.07019.21
5.4.200.0030.04019.05
5.4.190.0030.06318.77
5.4.180.0030.03319.14
5.4.170.0100.05019.09
5.4.160.0030.04318.89
5.4.150.0000.04319.04
5.4.140.0030.03716.29
5.4.130.0030.03316.28
5.4.120.0100.03716.34
5.4.110.0030.06316.48
5.4.100.0000.06716.26
5.4.90.0000.04016.26
5.4.80.0070.03716.40
5.4.70.0030.03016.45
5.4.60.0000.04016.18
5.4.50.0030.04016.30
5.4.40.0000.03316.32
5.4.30.0070.03316.35
5.4.20.0070.05716.31
5.4.10.0030.04316.41
5.4.00.0070.05315.68
5.3.290.0070.05014.53
5.3.280.0030.07714.59
5.3.270.0030.04014.58
5.3.260.0030.07714.60
5.3.250.0030.06014.48
5.3.240.0000.04014.47
5.3.230.0030.03714.60
5.3.220.0070.03714.53
5.3.210.0070.03014.44
5.3.200.0000.06014.57
5.3.190.0000.05714.54
5.3.180.0000.05014.56
5.3.170.0030.04014.43
5.3.160.0000.04014.44
5.3.150.0000.04314.43
5.3.140.0030.03714.54
5.3.130.0030.04714.39
5.3.120.0000.03714.54
5.3.110.0030.07714.52
5.3.100.0030.07014.05
5.3.90.0030.08014.01
5.3.80.0070.08014.02
5.3.70.0070.07014.01
5.3.60.0030.03314.02
5.3.50.0030.06013.86
5.3.40.0070.07313.82
5.3.30.0100.07013.77
5.3.20.0030.04713.66
5.3.10.0030.05313.52
5.3.00.0030.04013.51
5.2.170.0030.06710.95
5.2.160.0000.06311.15
5.2.150.0000.03010.95
5.2.140.0130.05011.22
5.2.130.0030.03011.03
5.2.120.0000.05311.10
5.2.110.0170.04711.07
5.2.100.0170.04011.07
5.2.90.0100.06011.15
5.2.80.0100.05711.10
5.2.70.0100.05711.16
5.2.60.0100.04711.10
5.2.50.0030.07011.10
5.2.40.0070.05710.85
5.2.30.0130.05310.91
5.2.20.0100.04311.04
5.2.10.0070.06010.93
5.2.00.0170.05010.79
5.1.60.0100.04010.31
5.1.50.0070.05310.31
5.1.40.0030.06010.31
5.1.30.0100.05710.31
5.1.20.0070.05710.31
5.1.10.0070.05010.31
5.1.00.0030.05710.31
5.0.50.0030.04010.31
5.0.40.0070.04010.31
5.0.30.0030.05310.31
5.0.20.0130.03710.31
5.0.10.0000.04710.31
5.0.00.0030.06710.31
4.4.90.0000.04010.31
4.4.80.0030.02710.31
4.4.70.0070.02010.31
4.4.60.0070.03310.31
4.4.50.0000.03310.31
4.4.40.0000.05710.31
4.4.30.0000.03310.31
4.4.20.0070.03310.31
4.4.10.0030.03710.31
4.4.00.0030.04710.31
4.3.110.0070.02010.31
4.3.100.0030.03310.31
4.3.90.0030.03310.31
4.3.80.0030.05010.31
4.3.70.0000.02010.31
4.3.60.0000.03710.31
4.3.50.0000.02710.31
4.3.40.0030.02710.31
4.3.30.0000.03010.31
4.3.20.0030.03710.31
4.3.10.0000.04010.31
4.3.00.0000.03310.31

preferences:
42.37 ms | 401 KiB | 5 Q