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); if ($emember_flag == 1) { // if emember, then 3 months $sumstart_timestamp = $sumend_timestamp - 91; $strsum_startdate = date("Y-m-d", $sumstart_timestamp); } // $sumend_timestamp = $sumend_timestamp + $param_day_multiplier; // add 1 day to cover today $sumend_timestamp = $sumend_timestamp; // covers only until yesterday // die("debug start and end-date: ". $strsum_startdate ." ; ". $strsum_enddate); echo date('r', $sumstart_timestamp) . ' ' . date('r', $sumend_timestamp);

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.0070.01118.68
8.3.50.0150.00321.89
8.3.40.0110.00718.88
8.3.30.0140.00019.18
8.3.20.0060.00320.34
8.3.10.0040.00423.66
8.3.00.0080.00020.80
8.2.180.0140.00417.13
8.2.170.0090.00622.96
8.2.160.0140.00020.11
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.90
8.2.110.0060.00322.28
8.2.100.0080.00318.16
8.2.90.0080.00019.42
8.2.80.0080.00018.00
8.2.70.0030.00518.00
8.2.60.0050.00518.18
8.2.50.0030.00518.07
8.2.40.0080.00021.06
8.2.30.0000.00718.29
8.2.20.0000.00717.89
8.2.10.0040.00418.34
8.2.00.0040.00418.14
8.1.280.0140.00725.92
8.1.270.0040.00423.77
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.88
8.1.230.0040.00719.22
8.1.220.0040.00417.89
8.1.210.0080.00018.77
8.1.200.0060.00617.48
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0040.00418.76
8.1.160.0000.00822.10
8.1.150.0000.00718.91
8.1.140.0000.00817.69
8.1.130.0030.00317.96
8.1.120.0000.00717.57
8.1.110.0040.00417.74
8.1.100.0000.00817.77
8.1.90.0040.00417.73
8.1.80.0040.00417.63
8.1.70.0040.00417.67
8.1.60.0050.00317.85
8.1.50.0040.00417.61
8.1.40.0000.00717.76
8.1.30.0050.00317.80
8.1.20.0000.00817.74
8.1.10.0040.00417.81
8.1.00.0040.00417.71
8.0.300.0000.00718.77
8.0.290.0050.00317.43
8.0.280.0000.00718.61
8.0.270.0030.00317.41
8.0.260.0060.00017.41
8.0.250.0030.00317.33
8.0.240.0000.00817.29
8.0.230.0000.00717.20
8.0.220.0040.00317.31
8.0.210.0050.00317.12
8.0.200.0070.00017.29
8.0.190.0000.00817.27
8.0.180.0000.00717.25
8.0.170.0040.00417.25
8.0.160.0000.00717.25
8.0.150.0000.00717.27
8.0.140.0000.00717.20
8.0.130.0060.00313.55
8.0.120.0000.00817.19
8.0.110.0040.00417.21
8.0.100.0040.00417.04
8.0.90.0040.00417.28
8.0.80.0090.00617.26
8.0.70.0050.00217.30
8.0.60.0030.00517.05
8.0.50.0070.00017.12
8.0.30.0100.00917.21
8.0.20.0160.00317.50
8.0.10.0040.00417.13
8.0.00.0170.00417.19
7.4.330.0000.00515.00
7.4.320.0040.00416.85
7.4.300.0000.00616.73
7.4.290.0040.00416.83
7.4.280.0030.00616.71
7.4.270.0000.00716.70
7.4.260.0030.00716.79
7.4.250.0070.00016.63
7.4.240.0020.00516.76
7.4.230.0050.00316.82
7.4.220.0070.01316.90
7.4.210.0070.01016.76
7.4.200.0030.00416.57
7.4.190.0070.00016.76
7.4.160.0090.00916.68
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0260.01416.78
7.4.120.0040.01316.98
7.4.110.0000.01716.81
7.4.100.0090.00916.63
7.4.90.0120.00616.60
7.4.80.0070.01719.39
7.4.70.0000.02016.80
7.4.60.0100.00716.76
7.4.50.0000.00416.61
7.4.40.0100.01116.80
7.4.30.0060.00916.66
7.4.00.0110.00715.07
7.3.330.0000.00513.37
7.3.320.0030.00313.39
7.3.310.0000.00716.70
7.3.300.0070.00016.59
7.3.290.0030.01416.55
7.3.280.0120.00916.63
7.3.270.0060.01017.40
7.3.260.0110.00716.91
7.3.250.0070.01016.79
7.3.240.0170.00016.75
7.3.230.0040.01516.69
7.3.210.0060.01116.82
7.3.200.0090.00919.39
7.3.190.0060.01216.78
7.3.180.0120.00416.56
7.3.170.0070.01016.64
7.3.160.0160.00016.64
7.3.120.0060.00914.99
7.3.110.0040.01415.13
7.3.100.0070.00714.91
7.3.90.0100.00714.98
7.3.80.0090.00615.11
7.3.70.0090.00615.11
7.3.60.0080.00015.08
7.3.50.0000.00815.10
7.3.40.0030.00614.84
7.3.30.0060.00915.26
7.3.20.0000.01116.67
7.3.10.0030.01016.83
7.3.00.0080.00316.94
7.2.330.0130.00616.97
7.2.320.0150.01217.11
7.2.310.0120.00616.92
7.2.300.0100.00717.04
7.2.290.0100.00716.85
7.2.250.0070.01115.41
7.2.240.0060.01015.00
7.2.230.0030.01015.61
7.2.220.0100.00315.25
7.2.210.0060.01015.58
7.2.200.0060.00915.09
7.2.190.0100.00615.25
7.2.180.0070.00815.32
7.2.170.0000.01315.33
7.2.160.0060.00915.38
7.2.150.0030.01017.07
7.2.140.0080.00817.25
7.2.130.0030.00717.03
7.2.120.0090.00617.29
7.2.110.0100.01017.26
7.2.100.0040.01517.18
7.2.90.0140.00717.38
7.2.80.0060.01316.95
7.2.70.0120.00317.25
7.2.60.0070.01317.32
7.2.50.0110.00717.16
7.2.40.0100.00717.33
7.2.30.0060.00917.28
7.2.20.0030.00617.04
7.2.10.0000.01116.97
7.2.00.0040.00716.84
7.1.330.0110.00416.16
7.1.320.0030.00716.06
7.1.310.0060.00615.89
7.1.300.0000.00816.07
7.1.290.0040.01115.95
7.1.280.0030.01016.08
7.1.270.0000.00916.13
7.1.260.0040.00816.16
7.1.250.0080.00415.89
7.1.200.0040.00816.15
7.1.70.0070.00717.62
7.1.60.0040.00719.46
7.1.50.0070.01717.13
7.1.00.0030.07722.33
7.0.200.0030.00316.95
7.0.140.0000.07722.08
7.0.80.0200.05719.99
7.0.70.0070.04719.95
7.0.60.0570.07719.99
7.0.50.0100.08020.27
7.0.40.0130.03720.11
7.0.30.0070.08720.07
7.0.20.0170.07020.00
7.0.10.0100.08020.18
7.0.00.0030.08720.09
5.6.280.0070.07021.12
5.6.230.0170.07320.75
5.6.220.0030.08320.60
5.6.210.0170.07320.46
5.6.200.0100.07721.08
5.6.190.0230.06321.04
5.6.180.0170.07320.99
5.6.170.0130.06721.14
5.6.160.0100.07721.11
5.6.150.0100.07721.03
5.6.140.0200.07721.06
5.6.130.0170.07021.05
5.6.120.0030.08320.94
5.6.110.0070.08321.10
5.6.100.0070.04021.00
5.6.90.0130.03721.00
5.6.80.0030.05320.45
5.6.70.0100.07720.48
5.6.60.0030.08720.38
5.6.50.0070.05720.39
5.6.40.0130.03320.32
5.6.30.0070.03720.42
5.6.20.0070.04020.49
5.6.10.0100.03720.30
5.6.00.0070.04020.48
5.5.370.0070.08020.38
5.5.360.0130.05020.39
5.5.350.0100.04320.45
5.5.340.0270.06720.87
5.5.330.0130.07020.87
5.5.320.0070.05020.79
5.5.310.0100.05020.73
5.5.300.0000.07020.94
5.5.290.0030.04720.79
5.5.280.0030.04720.86
5.5.270.0070.05320.77
5.5.260.0030.07020.92
5.5.250.0070.05020.71
5.5.240.0100.05020.19
5.5.230.0070.04320.16
5.5.220.0070.07020.14
5.5.210.0100.07320.25
5.5.200.0100.03320.26
5.5.190.0030.04320.29
5.5.180.0070.04720.16
5.5.160.0000.04020.26
5.5.150.0100.03320.23
5.5.140.0100.03019.96
5.5.130.0070.03720.18
5.5.120.0000.04320.24
5.5.110.0030.04020.22
5.5.100.0030.04320.11
5.5.90.0130.07320.12
5.5.80.0070.03320.16
5.5.70.0000.04320.12
5.5.60.0070.07320.05
5.5.50.0000.03720.11
5.5.40.0100.03020.14
5.5.30.0100.03320.05
5.5.20.0000.04320.15
5.5.10.0030.04020.03
5.5.00.0100.03320.07
5.4.450.0170.07019.43
5.4.440.0170.06319.29
5.4.430.0070.07319.11
5.4.420.0070.04019.35
5.4.410.0030.04719.29
5.4.400.0100.07319.06
5.4.390.0100.07719.09
5.4.380.0030.04018.95
5.4.370.0070.07319.23
5.4.360.0100.03719.14
5.4.350.0130.03719.06
5.4.340.0070.04019.10
5.4.320.0030.05019.05
5.4.310.0000.03718.95
5.4.300.0030.03718.83
5.4.290.0030.04019.23
5.4.280.0030.03718.96
5.4.270.0000.04319.22
5.4.260.0030.06318.96
5.4.250.0170.06319.05
5.4.240.0070.03718.80
5.4.230.0070.03319.11
5.4.220.0000.04319.02
5.4.210.0070.04718.77
5.4.200.0000.04019.02
5.4.190.0000.04019.02
5.4.180.0000.03719.11
5.4.170.0100.03019.04
5.4.160.0070.03019.02
5.4.150.0000.04018.79
5.4.140.0070.04016.33
5.4.130.0030.04716.43
5.4.120.0100.03316.33
5.4.110.0000.04016.32
5.4.100.0070.03316.50
5.4.90.0030.03316.27
5.4.80.0030.05716.35
5.4.70.0030.03716.48
5.4.60.0100.03016.24
5.4.50.0130.05316.40
5.4.40.0000.04016.31
5.4.30.0030.04016.18
5.4.20.0030.04016.33
5.4.10.0070.03316.28
5.4.00.0070.03015.82
5.3.290.0070.03714.68
5.3.280.0070.03014.61
5.3.270.0030.03714.61
5.3.260.0100.03014.59
5.3.250.0070.03714.48
5.3.240.0070.03014.48
5.3.230.0030.05014.57
5.3.220.0070.03314.40
5.3.210.0000.03714.56
5.3.200.0030.03714.58
5.3.190.0030.03714.45
5.3.180.0100.06314.54
5.3.170.0070.05014.52
5.3.160.0100.04714.52
5.3.150.0030.05014.43
5.3.140.0030.03714.43
5.3.130.0100.02714.57
5.3.120.0070.06314.42
5.3.110.0030.04014.49
5.3.100.0030.03313.91
5.3.90.0030.03713.89
5.3.80.0030.04014.01
5.3.70.0030.03713.88
5.3.60.0070.03314.00
5.3.50.0000.04013.92
5.3.40.0030.07313.94
5.3.30.0230.06313.79
5.3.20.0070.04713.66
5.3.10.0030.04013.63
5.3.00.0030.04313.64
5.2.170.0000.03011.16
5.2.160.0030.06011.10
5.2.150.0100.05711.17
5.2.140.0070.06011.22
5.2.130.0100.05010.90
5.2.120.0070.05711.18
5.2.110.0000.04711.13
5.2.100.0000.03310.91
5.2.90.0130.05010.91
5.2.80.0000.04011.03
5.2.70.0000.05011.14
5.2.60.0030.05010.93
5.2.50.0000.04010.87
5.2.40.0100.06010.86
5.2.30.0100.05010.82
5.2.20.0030.06010.94
5.2.10.0000.06710.86
5.2.00.0000.04010.79
5.1.60.0070.0509.84
5.1.50.0000.05710.10
5.1.40.0070.04710.07
5.1.30.0130.04310.41
5.1.20.0000.05310.22
5.1.10.0100.04710.18
5.1.00.0070.02710.13
5.0.50.0000.0278.66
5.0.40.0000.0508.53
5.0.30.0000.0578.32
5.0.20.0030.0378.22
5.0.10.0030.0478.27
5.0.00.0030.0638.22
4.4.90.0030.0338.22
4.4.80.0000.0208.22
4.4.70.0000.0378.22
4.4.60.0030.0308.22
4.4.50.0030.0338.22
4.4.40.0000.0538.22
4.4.30.0030.0308.22
4.4.20.0000.0378.22
4.4.10.0000.0378.22
4.4.00.0000.0438.22
4.3.110.0000.0378.22
4.3.100.0030.0208.22
4.3.90.0000.0378.22
4.3.80.0000.0538.22
4.3.70.0000.0378.22
4.3.60.0030.0308.22
4.3.50.0030.0308.22
4.3.40.0070.0408.22
4.3.30.0070.0338.22
4.3.20.0030.0308.22
4.3.10.0030.0178.22
4.3.00.0030.0338.22

preferences:
45.17 ms | 401 KiB | 5 Q